objective c - In Table view How to add another custom cell in expanded cell in ios? -


hi have been working expanding cell past few days suggestion of internet found code expand customcell. question using custom cell here after expanding cell wanna add custom cell in expanded custom cell. 1 can me this??? in advance

@interface myhomeview () {     nsindexpath *selectedindexpath;  } @end   -(void)tableview:(uitableview *)tableview didselectrowatindexpath:(nsindexpath *)indexpath {     selectedindexpath=indexpath;  } 

this how increasing table height

-(cgfloat)tableview:(uitableview *)tableview heightforrowatindexpath:(nsindexpath *)indexpath {      if(selectedindexpath!=nil &&[selectedindexpath compare:indexpath]==nsorderedsame)     {                 return 140;     }       return 52;  } 

here apple's sample code sample code submenu

this sample code shows how construct submenu using uitableview. basic idea menu item section of table , submenu item row of respective section.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -