Friday 15 August 2014

ios - Dynamic static table view -


OK, if there is "static cell" content mode to create a settings-like view, can someone suggest that if Will you have different settings under different circumstances? That is, in one case I have three cells: switch with two cells and one button, and in the second case - the last cell with the button.

Should I Return to Dynamic Cells? How can I control the behavior of headers in this case? Thank you

I think you use better dynamic cells. You can only call these methods for the footer and sections of the headings and cells:

  - (NSString *) Table view: (UITableView *) Table view title ForHeaderInSection: (NSInteger ) Section {return @ "it will be headers !!!!"; } Table view: (UITableView *) table view title ForFooterInSection: (NSInteger) section {return @ "This footer}   

Article will be !!!! "; }

P.S. There were a few ways, such as "viewForHeaderInSection" and "viewForFooterInSecton" . But I do not accept full implementation again.

P.S. ^ 2 You must set the group view to group!



No comments:

Post a Comment