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

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -