use progressTintColor to prevent progress bar losing color when overlaid.
This commit is contained in:
parent
185b5aafe7
commit
d07dff8a2a
@ -878,7 +878,7 @@ CGFloat const PanelAnimationDuration = 0.2;
|
||||
// Create bottom progress bar
|
||||
UIProgressView *progressView = [[UIProgressView alloc] initWithProgressViewStyle:UIProgressViewStyleDefault];
|
||||
progressView.translatesAutoresizingMaskIntoConstraints = NO;
|
||||
progressView.tintColor = [UIColor mfTomatoRed];
|
||||
progressView.progressTintColor = [UIColor mfTomatoRed];
|
||||
[self.view addSubview:progressView];
|
||||
self.bottomProgressBar = progressView;
|
||||
[NSLayoutConstraint constraintWithItem:progressView attribute:NSLayoutAttributeLeft relatedBy:NSLayoutRelationEqual toItem:mainView attribute:NSLayoutAttributeLeft multiplier:1.0 constant:0].active = YES;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user