IOS 7 UIProgressView 颜色

标签 ios iphone objective-c ios7

我有

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 的变化是颜色从蓝色变为灰色。 知道我该如何解决吗?

最佳答案

对于UIProgressViewblueColor默认为progressTintColorgrayColor默认为trackTintColor。您是否使进度从 1.0f 更改为 0.0f 或重新加载 tableview?

关于IOS 7 UIProgressView 颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21751305/

相关文章:

iphone - 在 Xcode 4 中设置 malloc_error_break

iphone - 使用 NSUserDefaults 保存游戏设置/状态的优点?

objective-c - 方向更改后居中 UIPageControl

iphone - Segue 崩溃 - 调试器不显示任何有用的错误

iOS Parse (Reduce API Requests) 每周在同一天执行一次函数

android - 如何检测 map 何时完成调整大小

javascript - 删除显示 HTML 字符的 elementFromPoint()

objective-c - 在两个类中调用IBAction方法

ios - 导航栏出现白线

ios - 无法将 View 放在导航栏上方