iOS 6.0中UIViewController被弃用的一些方法
2014-11-21 21:57
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从不调用。
"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-UIView的一些常用的方法
- ios中一些老组件(ARC之前)的导入方法
- ios开发NSLocale的一些方法
- 好久不写ios代码,生疏了,以前的一些方法竟然被启用了,网上着了文章转载
- iOS/调试器和程序崩溃时的一些处理方法
- IOS里多态的一些方法
- iOS 7 一些bug的解决方法
- iOS 关于图片处理的一些方法。。。
- ios-UIImageView的一些常用的方法