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

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

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

unit testing - How to mock PreferenceManager in Android? -