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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

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

android - How to create dynamically Fragment pager adapter -