简体   繁体   中英

UITableView header view

I have 3 different instances of tableview in Nib, where I am displaying all these tableview in a page control. And delegate and data source for all the 3 tableview is same.

Problem here is, Header view is appearing in one tableview and disappearing in others when I change the Page of the UIPageControl ?

Any idea how can I resolve this issue ?

Since it's not possible for a view to be a subview of more than one view at a time, using the same view as a header for multiple table views will result in odd visual artifacts (views disappearing one place and showing up somewhere else). You can add one header view per table view to your nib, or generate a header view for each programmatically, and assign them at run-time.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM