objective c - pop up a view when i clicked button on table view cell -


i have button on table view cell if click button pop view appeared , remaining cells animated downwards animation.and cell having sub views open plist in ios if click sub view cell open next level sub cells. tableview must below images

the table view must this

table view

cells , sub-cells must this. can 1 assist me?

i have done before. use following code. create custom cell class having cell , followed view in cell view show shown using heightforrowatindexpath method uitableview class. here code

- (nsinteger)numberofsectionsintableview:(uitableview *)tableview {     return 1; }  - (nsinteger)tableview:(uitableview *)tableview numberofrowsinsection:(nsinteger)section {     return 10; }  - (cgfloat)tableview:(uitableview *)tableview heightforrowatindexpath:(nsindexpath *)indexpath; {     if (checkheight == indexpath.row)         return 185;     else         return 80; }  // customize appearance of table view cells. - (uitableviewcell *)tableview:(uitableview *)tableview cellforrowatindexpath:(nsindexpath *)indexpath {     static nsstring *cellidentifier = @"cell";      faqcell *cell = (faqcell *)[tableview dequeuereusablecellwithidentifier:cellidentifier];     if (cell == nil)     {         [[nsbundle mainbundle] loadnibnamed:@"faqcell" owner:self options:nil];         cell = mycell;         mycell = nil;     }      cell.selectionstyle = uitableviewcellselectionstylenone;     [cell.questext setfont:[uifont fontwithname:@"caviardreams" size:16]];     [cell.anstext setfont:[uifont fontwithname:@"caviardreams" size:16]];       // check row background color has changed     if (checkheight == indexpath.row)         [cell.bgview setbackgroundcolor:[uicolor colorwithred:0.3333 green:0.7373 blue:0.4588 alpha:1.0]];     else         [cell.bgview setbackgroundcolor:[uicolor colorwithred:0.9176 green:0.3765 blue:0.2980 alpha:1.0]];      return cell; }  #pragma mark - #pragma mark tableview delegate methods  - (void)tableview:(uitableview *)tableview didselectrowatindexpath:(nsindexpath *)indexpath {     // deselect cell     [tableview deselectrowatindexpath:indexpath animated:true];     checkheight = indexpath.row;      // reload data of table     [tableview reloadsections:[nsindexset indexsetwithindexesinrange:nsmakerange(0, tableview.numberofsections)] withrowanimation:uitableviewrowanimationautomatic]; } 

let me know if face issue.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -