cocoa touch - reloadTable does nothing -


i have strange problem. have tableview , button switch modal view. after dismissing modal view, tableview shall reloaded.

for testing made button calls [tableview reloaddata]. nothing happens... , there new data displayed.

any tips nice !

my header:

@interface mainviewcontroller : uiviewcontroller   uitableviewdelegate,uitableviewdatasource,uipopovercontrollerdelegate> {      uitableview *_tableview;     uipopovercontroller *popovercontroller; } @property(nonatomic, retain) iboutlet uitableview *tableview; 

my m file:

 @synthesize tableview = _tableview;  -(void) reload: (id) sender  {          [_tableview reloaddata];       nslog(@"reloaddata"); } 

well, solved problem. in modal view save data coredata. read data in init function of tableviewcontroller!! have readdata function included in viewwillappear , works great. [tableview reloaddata] had no new data display.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -