我有
UIProgressView *progressView
在 UITableViewCell
中。当我弹出 UIActionSheet
时:
UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:nil];
[actionSheet addDestructiveButtonWithTitle:@"Delete" block:^(UIActionSheet *actionSheet, NSInteger buttonIndex) {
}];
[actionSheet addCancelButtonWithTitle:@"Cancel" block:^(UIActionSheet *actionSheet, NSInteger buttonIndex) {}];
[actionSheet showFromTabBar:self.tabBarController.tabBar];
progressView
的变化是颜色从蓝色变为灰色。
知道我该如何解决吗?
最佳答案
对于UIProgressView
,blueColor
默认为progressTintColor
,grayColor
默认为trackTintColor
。您是否使进度从 1.0f 更改为 0.0f 或重新加载 tableview?
关于IOS 7 UIProgressView 颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21751305/