iphone - How to mix "Custom Section Header View(s)" and "Regular Header(s)" in a UITableViewController? -
Imagine a table ("Style Grouped") with multiple sections:
-
- There should be a few buttons between "regular section".
Intensely, to define a section title, I use:
(NSString *) tableview: (UITableView *) table view title ForHeaderInSection: (NSInteger) section
To simulate more buttons, I create through custom UIViews:
(UIView *) Table view: (UITableView *) The table view viewForHeaderInSection: (NSInteger) section
The problem is that from the time you can start using
viewForHeaderInSection
, thentitleForHeaderInSection < / Code> working Does not stop ...
This is understandable in some way because now we want to provide custom header view. The only problem is that there is no way to access the original UIView used to present "regular headers titles" by UIKit ...
The world is not ending (i.e. UILBable and UIKit Look and feel), but I'm just wondering if I'm missing something (?)
It seems that the heading of ViewForHeaderInSection is called ForHeaderInSection. However, if you return zero to a specific line where you do not want to use any of the views, then the title is called ForHeaderInSection.
Comments
Post a Comment