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.
我有一个使用情节提要创建的静态表格视图。我想在代码中获取它的行数。我怎样才能做到这一点?
我所知道的最好的是:
NSInteger rows = 0; for (NSInteger i = 0; i < [myTable numberOfSections]; ++i) { rows += [myTable numberOfRowsInSection:i]; }