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

Method pageViewDidEndTurning

CrossApp/controller/CAViewController.cpp:1526–1539  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1524}
1525
1526void CATabBarController::pageViewDidEndTurning(CAPageView* pageView)
1527{
1528 m_pTabBar->setTouchEnabled(true);
1529
1530 for (int i = MAX((int)m_nSelectedIndex - 1, 0);
1531 i < MIN((int)m_nSelectedIndex + 2, m_pViewControllers.size());
1532 i++)
1533 {
1534 CC_CONTINUE_IF(i == pageView->getCurrPage());
1535 m_pViewControllers.at(i)->getView()->setVisible(false);
1536 }
1537 CC_RETURN_IF(m_nSelectedIndex == pageView->getCurrPage());
1538 this->showSelectedViewControllerAtIndex(pageView->getCurrPage());
1539}
1540
1541void CATabBarController::scrollViewWillBeginDragging(CAScrollView* view)
1542{

Callers 1

contentOffsetFinishMethod · 0.45

Calls 6

setTouchEnabledMethod · 0.80
getCurrPageMethod · 0.80
getViewMethod · 0.80
sizeMethod · 0.45
setVisibleMethod · 0.45

Tested by

no test coverage detected