iOS6中的presentModalViewController
在我的应用程序代码中,我仍然使用presentModalViewController以模态方式呈现ViewController。这在iOS 6中已被弃用。这是否意味着此方法对运行iOS 6的设备没有影响iOS6中的presentModalViewController,ios,cocoa-touch,ios6,Ios,Cocoa Touch,Ios6,在我的应用程序代码中,我仍然使用presentModalViewController以模态方式呈现ViewController。这在iOS 6中已被弃用。这是否意味着此方法对运行iOS 6的设备没有影响 如果是,我如何使我的应用程序在iOS 6上以模式显示ViewController?我的Xcode版本不支持iOS 6,因此iOS 6中的所有新方法对我都不可用。已弃用意味着您不应再使用此方法。它仍然有效,但在下一次更新中可能会完全删除它 要以模式显示视图控制器,您可以使用iOS 5.0中引入的新
如果是,我如何使我的应用程序在iOS 6上以模式显示ViewController?我的Xcode版本不支持iOS 6,因此iOS 6中的所有新方法对我都不可用。已弃用意味着您不应再使用此方法。它仍然有效,但在下一次更新中可能会完全删除它 要以模式显示视图控制器,您可以使用iOS 5.0中引入的新方法
-presentViewController:animated:completion:
。要取消新方法,请使用
-dismissViewControllerAnimated:completion:
如果您有
[self presentModalViewController:aController animated:YES];
将其更改为
[self presentViewController:aController animated:YES completion:nil];
我认为解雇是
-解雇ViewControlleranimated:completion:
。我已尝试将self.viewController presentModalViewController:nav动画:是的
更改为-解雇ViewControlleranimated:completion:
不工作指导我请-presentModalViewController:animated
应替换为-presentViewController:动画:完成: