| 833 | } |
| 834 | |
| 835 | CAViewController* CANavigationController::popFirstViewController() |
| 836 | { |
| 837 | if (m_pViewControllers.size() <= 1) |
| 838 | { |
| 839 | return NULL; |
| 840 | } |
| 841 | |
| 842 | CAViewController* frontViewController = m_pViewControllers.front(); |
| 843 | frontViewController->viewDidDisappear(); |
| 844 | frontViewController->m_pNavigationController = NULL; |
| 845 | frontViewController->removeViewFromSuperview(); |
| 846 | frontViewController->retain()->autorelease(); |
| 847 | m_pViewControllers.popFront(); |
| 848 | |
| 849 | m_pContainers.front()->removeFromSuperview(); |
| 850 | m_pContainers.popFront(); |
| 851 | |
| 852 | m_pSecondContainers.popFront(); |
| 853 | |
| 854 | m_pNavigationBars.popFront(); |
| 855 | |
| 856 | return frontViewController; |
| 857 | } |
| 858 | |
| 859 | CAViewController* CANavigationController::popViewControllerAtIndex(int index) |
| 860 | { |
nothing calls this directly
no test coverage detected