MCPcopy Create free account
hub / github.com/9miao/CrossApp / replaceViewControllerFinish

Method replaceViewControllerFinish

CrossApp/controller/CAViewController.cpp:579–596  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

577}
578
579void CANavigationController::replaceViewControllerFinish()
580{
581 CAView* newContainer = m_pContainers.back();
582 newContainer->setLayout(DLayoutFill);
583 size_t index = m_pViewControllers.size() - 2;
584 CAViewController* lastViewController = m_pViewControllers.at(index);
585 lastViewController->viewDidDisappear();
586 lastViewController->m_pNavigationController = NULL;
587 lastViewController->removeViewFromSuperview();
588 m_pViewControllers.erase(index);
589
590 CAView* backContainer = m_pContainers.at(index);
591 backContainer->removeFromSuperview();
592 m_pContainers.erase(index);
593 m_pSecondContainers.erase(index);
594 m_pNavigationBars.erase(index);
595 CAApplication::getApplication()->getTouchDispatcher()->setDispatchEventsTrue();
596}
597
598void CANavigationController::pushViewController(CAViewController* viewController, bool animated)
599{

Callers 1

replaceViewControllerMethod · 0.95

Calls 9

setLayoutMethod · 0.80
removeFromSuperviewMethod · 0.80
setDispatchEventsTrueMethod · 0.80
getTouchDispatcherMethod · 0.80
backMethod · 0.45
sizeMethod · 0.45
viewDidDisappearMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected