阅读背景:

为什么我的UIAlertActions在iPad Air上变为零

来源:互联网 

I'm working on an old iOS app originally written for iOS 6, and it had some UIActionSheets that needed to be changed, so I've been working to move them over to UIAlertControllers, using UIAlertActions. This has worked perfectly fine on a iPad2 Simulator, however when testing on an iPad Air (the only iPad I have access to) my UIAlertAction, and UIAlertController become nil directly after being created (looked at in the debugger, it receives a pointer on creation, however as soon as it executes the next line it becomes null). Here's a code sample:I'm working on an old iOS app originally writte




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: