iphone - How to "refresh" UIView -


i have data being refreshed in modalviewcontroller , when data gets refreshed, parent controller needs refresh data well. tried doing [tableview reloaddata]; didn't work since actual array values aren't being refreshed. there way me reload controller without user seeing animation?

thanks help!

are refreshing data off main thread? if so, need call reloaddata method using following method:

- (void)performselectoronmainthread:(sel)aselector withobject:(id)arg waituntildone:(bool)wait

so tableview like:

[tableview performselectoronmainthread:@selector(reloaddata) withobject:nil waituntildone:no];


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -