viewWillAppear being called twice in iOS5

前端 未结 4 1322
甜味超标
甜味超标 2021-01-06 02:35

I\'m running all my apps to make sure it\'s not just one app, and in every app I have, when I run on the iOS5 simulator or device, the viewWillAppear method get

4条回答
  •  清酒与你
    2021-01-06 03:30

    If you want to restore the old (iOS 4) behavior in your view controller you should implement the following method:

    - (BOOL)automaticallyForwardAppearanceAndRotationMethodsToChildViewControllers {
        return NO;
    }
    

提交回复
热议问题