Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>So after a while and some testing and listen to your ideas and technicals i solved my problem!<br> Here is a little code : <br></p> <pre><code>- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { return [mappedSprints count]; } - (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section { UISprint*s = [mappedSprints objectAtIndex:section]; return s._name; } - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { UISprint* s = [mappedSprints objectAtIndex:section]; return [s.internalUserStorey count] + [s.externalUserStorey count] + 1; } - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { if (indexPath.row == 0) { return 130; } return 80; } - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:[NSString stringWithFormat:@"Cell%d%d", indexPath.row, indexPath.section]]; if (cell == nil) { cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:[NSString stringWithFormat:@"Cell%d%d", indexPath.row, indexPath.section]]; } UISprint*s = [mappedSprints objectAtIndex:indexPath.section]; if (indexPath.row == 0) { //Here is my first cell //cell.textLabel.text =s._name; } else if(indexPath.row &gt;= 0 &amp;&amp; indexPath.row&lt;=[s.internalUserStorey count]){ //here are the cells for SubItem } else if(indexPath.row &gt;= [s.internalUserStorey count]){ //here are the cells for SubItem 2 } return cell; </code></pre> <p><br> So thanks to all !! Best Konstantin</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload