viewDidload->viewWillappear->viewDidappear->viewWillDisappear->viewDidDisappear->dealloc

    • A页面->B页面

    B(viewDidload) -> A(viewWillDisappear) -> B(viewWillappear) -> A(viewDidDisappear) -> B(viewDidappear)

    • B页面返回A页面

    B(viewWillDisappear) -> A(viewWillappear) -> B(viewDidDisappear) -> A(viewDidappear) -> B(dealloc)

    • B页面滑动返回A页面一半时终止,滑回到B页面

    B(viewWillDisappear) -> A(viewWillappear) -> A(viewWillDisappear) -> A(viewDidDisappear) -> B(viewWillappear) -> B(viewDidappear)