Need assistance regarding transitionFromView:toView:duration:options:completion:

前端 未结 2 2012
故里飘歌
故里飘歌 2020-12-22 05:51

Regarding transitionFromView:toView:duration:options:completion: Apple doc says this in last few lines:

This method modifies the views in their view h

2条回答
  •  佛祖请我去吃肉
    2020-12-22 06:11

    The statement "it is your responsibility to update the view controller appropriately to handle the change." it meant that you have to appropriately call view hierarchy delegate methods such as:

    - (void)viewDidLoad;
    - (void)viewDidUnload;
    - (void)viewWillAppear;
    - (void)viewDidDisappear;
    

    And other methods that are responsible for proper view management.

    Here are some examples.

提交回复
热议问题