UIActivityIndicator
Non classé mai 1st, 2010Create a UIActivityIndicator :
Declare the following variables in your .h :
BOOL isWaiting;
NSInteger waitingCounter;
UIView* waitingScreen;
UIActivityIndicatorView* waitingSreenActivityIndicator;
In your .m implement a method you’ll call when needed :
- (void) showMyWaitingScreen{
if (waitingCounter == 0) {
if(!waitingScreen){
//init waiting view
waitingScreen = [[UIView alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
waitingScreen.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0.2];
waitingSreenActivityIndicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
[waitingScreen addSubview:waitingSreenActivityIndicator];
}
isWaiting = YES;
waitingScreen.hidden = NO;
[waitingSreenActivityIndicator startAnimating];
[self.view.window addSubview:waitingScreen];
}
waitingCounter++;
}
août 16th, 2014 at 8 h 34 min
concurred@pleased.outboards » rel= »nofollow »>.…
tnx for info!!…
août 17th, 2014 at 1 h 13 min
bulb@logistic.equation » rel= »nofollow »>.…
ñýíêñ çà èíôó!…
août 18th, 2014 at 4 h 28 min
iodothyronines@sovereignty.flip » rel= »nofollow »>.…
ñïñ!!…
octobre 24th, 2014 at 12 h 15 min
trusted@pillspot.com » rel= »nofollow »>.…
tnx for info!!…
novembre 12th, 2014 at 15 h 42 min
trusted@pillspot.com » rel= »nofollow »>.…
thanks!!…
novembre 14th, 2014 at 15 h 34 min
trusted@pillspot.com » rel= »nofollow »>.…
thanks for information….