title: UIProgressView progress not updating even when run in the main thread
body: <p>UIProgressView progress not updating in iOS8&amp;9 but work in iOS7 even when run in the main thread. My code is the following, hope have a help.</p>
  
  <pre><code>- (void)viewDidAppear:(BOOL)animated{
      [super viewDidAppear:animated];
      self.timer = [NSTimer scheduledTimerWithTimeInterval: 0.1f target:self selector: @selector(handleProgressBar) userInfo: nil repeats: YES];
  }
  
  - (void) handleProgressBar{
      if(self.usedTime &gt;= 300.0)
      {
          [self.timer invalidate];
          self.timer=nil;
          [self submitAns:[NSNumber numberWithInt:-1]];
      }
      else
      {
          self.usedTime += 1;
          CGFloat progress = self.usedTime*(0.0033333333);
  
          [self performSelectorOnMainThread:@selector(updateProgress:) withObject:[NSNumber numberWithFloat:progress] waitUntilDone:NO];
          if(self.usedTime&gt;200){
              [self.progressBar setProgressTintColor:[UIColor redColor]];}
      }
  }
  
  - (void)updateProgress:(NSNumber *)progress {
      float fprogress = [progress floatValue];
      //self.progressBar.progress = fprogress;
      [self.progressBar setProgress:fprogress animated:YES];
  }
  </code></pre>