| 909 | } |
| 910 | |
| 911 | void CANavigationController::setNavigationBarHidden(bool hidden, bool animated) |
| 912 | { |
| 913 | CC_RETURN_IF(m_bNavigationBarHidden == hidden); |
| 914 | m_bNavigationBarHidden = hidden; |
| 915 | CC_RETURN_IF(this->getView()->getSuperview() == NULL); |
| 916 | |
| 917 | if (animated) |
| 918 | { |
| 919 | CAAnimation::schedule(CAAnimation_selector(CANavigationController::navigationBarHiddenAnimation), this, 0.25f); |
| 920 | |
| 921 | CAViewAnimation::beginAnimations("", NULL); |
| 922 | CAViewAnimation::setAnimationDuration(0.25f); |
| 923 | CAViewAnimation::setAnimationWillStartSelector(CAApplication::getApplication()->getTouchDispatcher(), CAViewAnimation0_selector(CATouchDispatcher::setDispatchEventsFalse)); |
| 924 | CAViewAnimation::setAnimationDidStopSelector(CAApplication::getApplication()->getTouchDispatcher(), CAViewAnimation0_selector(CATouchDispatcher::setDispatchEventsTrue)); |
| 925 | CAViewAnimation::commitAnimations(); |
| 926 | } |
| 927 | else |
| 928 | { |
| 929 | m_fProgress = 1.0f; |
| 930 | |
| 931 | if (this->getView()->getSuperview()) |
| 932 | { |
| 933 | this->update(0); |
| 934 | } |
| 935 | } |
| 936 | } |
| 937 | |
| 938 | int CANavigationController::getNavigationBarNowY(CAViewController* viewController) |
| 939 | { |
no test coverage detected