jjzjj

UIAlertActions

全部标签

ios - 为什么我的 UIAlertActions 在 iPad Air 上变为 nil

我正在开发一个最初为iOS6编写的旧iOS应用程序,它有一些需要更改的UIActionSheets,因此我一直在努力使用UIAlertActions将它们移至UIAlertControllers。这在iPad2模拟器上运行得非常好,但是在iPadAir(我唯一可以访问的iPad)上测试时,我的UIAlertAction和UIAlertController在创建后直接变为nil(在调试器中查看,它在创建时收到一个指针,但是一旦它执行下一行,它就会变为空)。这是一个代码示例://Whenhoveringoverthenextline,alerthasapointerUIAlertContr

ios - UIAlertController 显示 UIAlertActions 的空白标题

最近,我终于重构了一个遗留项目,并将所有UIAlertViews和UIActionSheets转换为UIAlertControllers。但我已经开始收到来自客户的问题,他们说有时UIAlertController操作标题是空白的。像这样:我无法在我的设备上重现此错误,您对可能的原因有任何想法吗?更新:我相信,该问题已包含在该代码中,也许主窗口的tintColor不是默认的,UIAlertController继承了它?@implementationUIAlertController(WMC)-(void)show:(BOOL)animated{self.alertWindow=[[UI