presentModalViewController in iOS6

人走茶凉 提交于 2019-12-03 00:06:29
Fabian Kreiser

Deprecated means that you shouldn't use this method anymore. It still works, but it might be completely removed in one of the next updates.

For displaying view controllers modally, you can use the new -presentViewController:animated:completion: method introduced in iOS 5.0.
For dismissing the new method is -dismissViewControllerAnimated:completion:.

https://developer.apple.com/documentation/uikit/uiviewcontroller

If you have

[self presentModalViewController:aController animated:YES];

change it to

[self presentViewController:aController animated:YES completion:nil];
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!