ios - (ExpandableTableView *)tableView heightForRowAtIndexPath:(NSIndexPath *) not called -


i'm using library make expandable tableview library

https://github.com/wannabegeek/expandabletableview

what want changing row height children rows

- (cgfloat)tableview:(expandabletableview *)tableview heightforsection:(nsuinteger)section; - (cgfloat)tableview:(expandabletableview *)tableview heightforrowatindexpath:(nsindexpath *)indexpath; 

never called

i uncommented them delegate class

what shall do?

try custom delegates :

step 1: uncomment these lines in expandabletableviewdelegate.h

- (cgfloat)tableview:(expandabletableview *)tableview heightforsection:(nsuinteger)section; - (cgfloat)tableview:(expandabletableview *)tableview heightforrowatindexpath:(nsindexpath *)indexpath; 

step 2: add following lines expandabletableview.h

- (cgfloat)tableview:(uitableview *)tableview heightforrowatindexpath:(nsindexpath *)indexpath; - (cgfloat)tableview:(uitableview *)tableview heightforsection:(nsuinteger)section; 

step 3: add following lines expandabletableview.m

- (cgfloat)tableview:(uitableview *)tableview heightforsection:(nsuinteger)section {     return 100; }  - (cgfloat)tableview:(uitableview *)tableview heightforrowatindexpath:(nsindexpath *)indexpath {     return 100; } 

step 4: add following lines examplecontroller.m

- (cgfloat)tableview:(expandabletableview *)tableview heightforrowatindexpath:(nsindexpath *)indexpath {     return 100; //return custom height value }   - (cgfloat)tableview:(expandabletableview *)tableview heightforsection:(nsuinteger)section; {     return 100; //return custom height value } 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -