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
Post a Comment