我有我认为是一个奇怪的iOS8错误.每当我启动UIAlertControllerI时,我发现它正在将使用UI
ImageRenderingModeAlwaysTemplate图像渲染模式的UIImageViews的所有色调颜色更改为深灰色.无论我是否调整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];