當由前一個界面,push下一個界面時,如A push B,四個方法執(zhí)行順序A(ViewWillDisappear)>B(viewWillAppear)>A(viewDidDisappear)>B(viewDidAppear)
當由后一個界面pop前一個界面時,如B pop A,四個方法執(zhí)行順序B(viewWillDisappear)>A(viewWillAppear)>B(viewDidDisappear)>A(viewDidAppear)
當由前一個界面,push下一個界面時,如A push B,四個方法執(zhí)行順序A(ViewWillDisappear)>B(viewWillAppear)>A(viewDidDisappear)>B(viewDidAppear)
當由后一個界面pop前一個界面時,如B pop A,四個方法執(zhí)行順序B(viewWillDisappear)>A(viewWillAppear)>B(viewDidDisappear)>A(viewDidAppear)