| 413 | } |
| 414 | |
| 415 | void 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 | |
| 432 | void CANavigationController::viewDidUnload() |
| 433 | { |
no test coverage detected