UA-17470720-3

Jump to content


Photo
- - - - -

How do I count the number of cells in a table?

cells sections

  • Please log in to reply
1 reply to this topic

#1 David DelMonte

David DelMonte

    Forum Master

  • STV 4.0 Pro
  • PipPipPipPipPipPipPip
  • 527 posts
Reputation: 41
Excellent

Posted 27 January 2015 - 08:08 PM

How do I find how many rows/cells in a table?

 

(late night dumb question time)



#2 David DelMonte

David DelMonte

    Forum Master

  • STV 4.0 Pro
  • PipPipPipPipPipPipPip
  • 527 posts
Reputation: 41
Excellent

Posted 27 January 2015 - 11:12 PM

For others:
 

 

SCTableViewSection *section = [self.tableViewModel sectionAtIndex:indexPath.section];
NSLog(@"count: %lu", (unsigned long)section.cellCount);
 

  • Tarek likes this





Also tagged with one or more of these keywords: cells, sections

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users