ios - Dynamically expandable table view -


i'm trying implement expandable table view cells.like headers , sub-header views. on selecting cell, expands few more cells json data being parsed. data populated received json object. can 1 me this?

you can use uitableview methods

[uitableview beginupdates];  // delete row in table view    [uitableview deleterowsatindexpaths:@[[nsindexpath indexpathforrow:1 insection:lastcount - 1]] withrowanimation:uitableviewrowanimationtop];  // insert section in table or set per need  [uitableview insertsections:[nsindexset indexsetwithindexesinrange:nsmakerange(array.count - [[results objectforkey:@"data"] count], [[results objectforkey:@"data"] count])] withrowanimation:uitableviewrowanimationfade];  [uitableview endupdates]; 

hope work .


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -