Authored by 阿达

bug fix

@@ -146,6 +146,7 @@ static float kprogressViewRadius = 2.0f; @@ -146,6 +146,7 @@ static float kprogressViewRadius = 2.0f;
146 if (self.isAppeared) { 146 if (self.isAppeared) {
147 [_currentNaviBar addSubview:self.progressView]; 147 [_currentNaviBar addSubview:self.progressView];
148 } 148 }
  149 + _progressBar.progressView = self.progressView;
149 }else{ 150 }else{
150 [self.progressView setFrame:CGRectMake(0, 0, CGRectGetWidth(self.view.frame), kprogressViewHeight)]; 151 [self.progressView setFrame:CGRectMake(0, 0, CGRectGetWidth(self.view.frame), kprogressViewHeight)];
151 self.progressView.autoresizingMask = UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleBottomMargin; 152 self.progressView.autoresizingMask = UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleBottomMargin;
@@ -442,7 +443,7 @@ static float kprogressViewRadius = 2.0f; @@ -442,7 +443,7 @@ static float kprogressViewRadius = 2.0f;
442 { 443 {
443 UIViewController *result = nil; 444 UIViewController *result = nil;
444 445
445 - UIWindow * window = [[[UIApplication sharedApplication] delegate] window]; 446 + UIWindow * window = (UIWindow *)[[[UIApplication sharedApplication] delegate] window];
446 if (window.windowLevel != UIWindowLevelNormal) 447 if (window.windowLevel != UIWindowLevelNormal)
447 { 448 {
448 NSArray *windows = [[UIApplication sharedApplication] windows]; 449 NSArray *windows = [[UIApplication sharedApplication] windows];