ios - UITableView: Number of elements in footer in the last section -
this question has answer here:
- how add footer uitableview? 10 answers
i know how can make appear in last section of uitableview number of elements in table in iphone contacts app:

thank you
you can fetch rows count table sections this:
int rowcount = 0; for(int section_number = 0 ; section_number < numofsections ; i++) { rowcount += [tablepropertyname numberofrowsinsection:section_number]; } here rowcount total of rows. can show rowcount in tablefooter method
- (uiview *)tableview:(uitableview *)tableview viewforfooterinsection:(nsinteger)section{ //here pass rowcount in label text }. hope helps you.
Comments
Post a Comment