简体   繁体   中英

UITableView Not refreshing after Modal View Controller dismisses

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.

您会更改numberOfRowsInSection吗?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM