UIAlertController错误更改其他UIImageViews的tintcolor

Cha*_*e S 6 uiimageview tintcolor ios8 uialertcontroller

我有我认为是一个奇怪的iOS8错误.每当我发布一个,UIAlertController我发现它正在改变我UIImageViews使用UIImageRenderingModeAlwaysTemplate图像渲染模式为深灰色的所有色调颜色.无论我是否调整色调,都会发生这种情况UIAlertController.下面找到一个截图(看看气泡角),它们在UIAlertController显示之前是正确的颜色,一旦被解除就会返回正确的颜色.

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

在此输入图像描述

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];
Run Code Online (Sandbox Code Playgroud)

Cyb*_*oai 11

每当呈现模态视图时,其后面的视图的色调颜色将更改为灰色的"暗淡"颜色,以指示它们不是交互式的.您应该能够通过设置s 的tintAdjustmentMode属性来解决此问题UIImageView.

请参阅: UIKit框架> UIView类参考>配置视图的视觉外观> tintAdjustmentMode