ios - UITableView: Number of elements in footer in the last section -


this question has answer here:

i know how can make appear in last section of uitableview number of elements in table in iphone contacts app:

sample

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

Popular posts from this blog

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -