ios - UIView.hidden doesn't work immediatly -


i have uiviewcontroller uitableview , uiview (see blow). when call hiddenloadingview @ somewhere, uiview still showing, dismiss after 10-20 seconds, why?

- (void)viewdidload {     ....     self.tableview = [[[uitableview alloc] init] autorelease];     [self.view addsubview:self.tableview];      self.loadingview = [[[uiview alloc] init] autorelease];     [self.view addsubview:self.loadingview]; }  - (void)hiddenloadingview {     nslog(@"%@", [nsnumber numberwithbool:self.loadingview.hidden]);     [self.loadingview sethidden:yes];     nslog(@"%@", [nsnumber numberwithbool:self.loadingview.hidden]); } 

be sure call hiddenloadingview main thread. sounds might calling completion block of asynchronous method.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -