UIAlertController bug导致其他UIImageView的tintcolor改变

11

我遇到了一个iOS8的奇怪bug。每当我启动一个UIAlertController,我发现它会将所有使用UIImageRenderingModeAlwaysTemplate图像渲染模式的UIImageViews的色调颜色更改为深灰色。无论我是否调整UIAlertController的色调颜色,这种情况都会发生。下面是一张屏幕截图(请查看气泡的边角),在UIAlertController显示之前是正确的颜色,在它被解除显示后又恢复了正确的颜色。

有人知道如何在iOS8中防止这种情况吗?

enter image description here

UIAlertController *alertController = [UIAlertController
                                      alertControllerWithTitle:[NSString stringWithFormat:@"Question ended %@",[endDateFormat stringFromDate:[NSDate dateWithTimeIntervalSince1970:selectedActivity.utc]]]
                                      message:messageText
                                      preferredStyle:UIAlertControllerStyleActionSheet];
[alertController.view setTintColor:[UIColor colorWithHue:240.0/360 saturation:.03 brightness:.58 alpha:1]];

//...Add some actions and then
[self presentViewController:alertController animated:YES completion:nil];
1个回答

19

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接