
有谁知道在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];解决方法 每当呈现模态视图时,其后面的视图的色调颜色将更改为灰色的“暗淡”颜色,以指示它们不是交互式的.您应该能够通过设置UIImageVIEws的tintAdjustmentMode属性来解决此问题.
看到:
UIKit Framework > UIView Class Reference > Configuring a View’s Visual Appearance > tintAdjustmentMode
以上是内存溢出为你收集整理的ios8 – UIAlertController错误更改其他UIImageViews的tintcolor全部内容,希望文章能够帮你解决ios8 – UIAlertController错误更改其他UIImageViews的tintcolor所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)