大家好。
我有一个自定义的ViewController(1),并以模态方式呈现另一个ViewController(2)。 虽然Modal ViewController(2)显示,但它收到内存警告和更改方向。 之后,我放弃了Modal ViewController(2)。
我检查了ViewController(1)上的回调函数的顺序。
- willRotateToInterfaceOrientation
- 的loadView
- viewDidLoad中
- willAnimateRotationToInterfaceOrientation
- didRotateFromInterfaceOrientation
- ...
是正常的,被称为willRotateToInterfaceOrient在loadView之前的功能?
iOS SDK版本是4.2 – Joey