add more indicator

This commit is contained in:
andyque 2014-10-10 17:36:33 +08:00
parent fb1adb5b90
commit 0f0c3878e5
1 changed files with 6 additions and 0 deletions

View File

@ -617,6 +617,8 @@ bool UIPageViewDynamicAddAndRemoveTest::init()
}
pageView->addPage(outerBox);
_displayValueLabel->setString(CCString::createWithFormat("page count = %ld", pageView->getPages().size())->getCString());
});
_uiLayer->addChild(button);
@ -636,6 +638,8 @@ bool UIPageViewDynamicAddAndRemoveTest::init()
{
CCLOG("There is no page to remove!");
}
_displayValueLabel->setString(CCString::createWithFormat("page count = %ld", pageView->getPages().size())->getCString());
});
_uiLayer->addChild(button2);
@ -648,6 +652,8 @@ bool UIPageViewDynamicAddAndRemoveTest::init()
button3->addClickEventListener([=](Ref* sender)
{
pageView->removeAllPages();
_displayValueLabel->setString(CCString::createWithFormat("page count = %ld", pageView->getPages().size())->getCString());
});
_uiLayer->addChild(button3);