UITableView Not refreshing after Modal View Controller dismisses

情到浓时终转凉″ 提交于 2019-12-20 04:38:29

问题


My UITable View does not refresh from its data source of an array, which is edited but the Modal view controller.

I have confirmed that the editing works fine.

And I have this tried these,

- (void)viewWillAppear:(BOOL)animated
{
[myTableView reloadData];
NSLog(@"Routines: %@", routines);
NSLog(@"refreshed!");



}

and

[self.myTableView reloadData]; 

but to no luck, and the method is being called, because 'refreshed!' is being logged.

So, what am i doing wrong? perhaps something in IB? The Table view does display with some initial data. So this leads me to think that the delegate and the data source works just fine. So im totally confused.


回答1:


do you change you numberOfRowsInSection ?



来源:https://stackoverflow.com/questions/2097788/uitableview-not-refreshing-after-modal-view-controller-dismisses

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!