I just have a question with regards to the tableView.
I know we can return the number of sections and rows with.
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
Could you tell me how I can have something like :
- A section within a section (and another section, if possible) – – And
then configure the rows there ?
And what would I return in
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
You will have to make your own implementation in cellForRowAtIndexPath where you return a row that is really made up of multiple rows and maybe a header label. Or maybe better is to make every other row a “header row” and check in cellForRowAtIndexPath whether you are on a “header row” or normal row; something like this:
and of course in numberOfRowsInSection you will have to return the normal amount of rows + 1 for sections with a header.