Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
I have a static table view, created using a storyboard. I want to get its number of rows in code. How can I do that?
The best I know about is:
NSInteger rows = 0; for (NSInteger i = 0; i < [myTable numberOfSections]; ++i) { rows += [myTable numberOfRowsInSection:i]; }