有人知道中有多少个方法被弃用了吗?
例如:
1)
– shouldAutorotateToInterfaceOrientation:
已在iOS 6.0中被弃用
改用以下方法替代
– shouldAutorotate
2)
– dismissModalViewControllerAnimated:
在iOS 6.0中已过时。
– presentModalViewController:animated:
在iOS 6.0中已过时。
应该使用以下方法:
– presentViewController:animated:completion:
– dismissViewControllerAnimated:completion:
另一个例子
– viewDidUnload Deprecated in iOS 6.0
– viewWillUnload Deprecated in iOS 6.0