Think you will also get help if you use it :)
syncProgressBarView = [[UIProgressView alloc]initWithProgressViewStyle:UIProgressViewStyleDefault]; syncProgressBarView.frame =CGRectMake(20, 55, 250, 20); [syncProgressBarView setProgress:0.0f animated:NO]; syncProgressBarView.backgroundColor =[UIColor clearColor]; [progressView addSubview:syncProgressBarView];
Create a new UIProgressView view of UIProgressView
progressView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, DeviceWidth, 100)]; [[UIApplication sharedApplication].keyWindow addSubview:progressView]; progressView.backgroundColor = [UIColor clearColor]; progressView.center = [UIApplication sharedApplication].keyWindow.center; syncProgressBarView.frame = CGRectMake(progressView.frame.size.width/2 - 250/2, progressView.frame.size.height/2 - 10, 250, 20); [[UIApplication sharedApplication].keyWindow bringSubviewToFront:[progressView superview]];
Another thing you have to do ...
dispatch_async(dispatch_get_main_queue(), ^{ [self updateProgressBar]; });
Emon Oct 30 '13 at 5:32 2013-10-30 05:32
source share