Sam Jarman
Sam Jarman

Reputation: 7377

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.

Upvotes: 1

Views: 1622

Answers (1)

nathanjosiah
nathanjosiah

Reputation: 4459

do you change you numberOfRowsInSection ?

Upvotes: 1

Related Questions