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
Post a Comment