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

Method viewDidLoad

CrossApp/controller/CAViewController.cpp:415–430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

413}
414
415void CANavigationController::viewDidLoad()
416{
417#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
418 if (atof(CADevice::getSystemVersionWithIOS()) >= 7.0f)
419 {
420 m_bClearance = this->getView()->convertToWorldSpace(DPointZero).y < 1;
421 }
422#endif
423
424 m_iNavigationBarHeight = m_bClearance ? 128 : 88;
425
426 CAViewController* viewController = m_pViewControllers.front();
427 viewController->retain()->autorelease();
428 m_pViewControllers.popFront();
429 this->createWithContainer(viewController, DLayoutFill);
430}
431
432void CANavigationController::viewDidUnload()
433{

Callers 1

Calls 15

createWithContainerMethod · 0.95
DVerticalLayout_T_BFunction · 0.85
convertToWorldSpaceMethod · 0.80
getViewMethod · 0.80
autoreleaseMethod · 0.80
retainMethod · 0.80
setTabBarItemMethod · 0.80
setItemsMethod · 0.80
setDisplayRangeMethod · 0.80
setViewsMethod · 0.80

Tested by

no test coverage detected