iOS 6.0中UIViewController被弃用的一些方法
2017-06-20 17:47
302 查看
概念:deprecated 弃用。表示已不被建议使用。可能随时取消它。建议採用新的来替代。
"modalViewController" 属性 is deprecated : first deprecated in iOS 6.0
而採用
presentedViewController
"dismissModalViewControllerAnimated" is deprecated : first deprecated in iOS 6.0
而採用
dismissViewControllerAnimated:(BOOL) completion:^(void)completion
如:[self dismissViewControllerAnimated:YES completion:nil];
"presentModalViewController: animated:" is deprecated : first deprecated in iOS 6.0
而採用
presentViewController:(UIViewController *) animated:(BOOL) completion:^(void)completion
如:[self.viewController presentViewController:controller animated:YES completion:nil];
"automaticallyForwardAppearanceAndRotationMethodsToChildViewControllers" is deprecated : first deprecated in iOS 6.0
而採用
shouldAutomaticallyForwardRotationMethods 和 shouldAutomaticallyForwardAppearanceMethods
"shouldAutorotateToInterfaceOrientation:" is deprecated : first deprecated in iOS 6.0
而採用
重载
supportedInterfaceOrientations 和 preferredInterfaceOrientationForPresentation 方法
"viewDidUnload"和"viewWillUnload" 在iOS 6.0从不调用。
相关文章推荐
- iOS 6.0中UIViewController被弃用的一些方法
- iOS 6.0中UIViewController被弃用的一些方法(界面跳转等)
- iOS 6.0中UIViewController被弃用的一些方法
- iOS 6.0中UIViewController被弃用的一些方法
- iOS 6.0中UIViewController被弃用的一些方法
- iOS 6.0 UIViewController被弃用的一些方法
- iOS 6.0中UIViewController被弃用的一些方法
- iOS 6.0中UIViewController被弃用的一些方法
- iOS 6.0中UIViewController被弃用的一些方法
- iOS 6.0中UIViewController被弃用的一些方法
- iOS6中UIViewController被弃用的方法(: first deprecated in iOS 6.0)
- IOS中UITextView控件的一些使用方法
- ios-UIView的一些常用的方法
- ios中一些老组件(ARC之前)的导入方法
- ios开发NSLocale的一些方法
- 好久不写ios代码,生疏了,以前的一些方法竟然被启用了,网上着了文章转载
- iOS/调试器和程序崩溃时的一些处理方法
- IOS里多态的一些方法
- iOS 7 一些bug的解决方法
- iOS 关于图片处理的一些方法。。。