本文整理汇总了C++中CADrawerController::release方法的典型用法代码示例。如果您正苦于以下问题:C++ CADrawerController::release方法的具体用法?C++ CADrawerController::release怎么用?C++ CADrawerController::release使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CADrawerController
的用法示例。
在下文中一共展示了CADrawerController::release方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: init
bool RootWindow::init()
{
if (!CAWindow::init())
{
return false;
}
this->setColor(ccc4(87, 154, 244, 255));
DMTabBarController* tabBarController = new DMTabBarController();
tabBarController->initWithTabBarController();
CANavigationController* nav = new CANavigationController();
nav->initWithRootViewController(tabBarController);
nav->setNavigationBarHidden(true, false);
DMClassificationViewController* classificationViewController = DMClassificationViewController::create();
CADrawerController* drawer = new CADrawerController();
drawer->initWithController(classificationViewController, nav, this->getBounds().size.width * 5/6.0f);
drawer->setBackgroundView(CAView::createWithColor(CAColor_black));
tabBarController->release();
nav->release();
CCRect rect = this->getBounds();
rect.size.height /= 2;
rect.origin.y = rect.size.height;
drawer->getBackgroundView()->addSubview(CAView::createWithFrame(rect));
this->setRootViewController(drawer);
drawer->release();
m_pRootTabBarController = tabBarController;
m_pRootNavigationController = nav;
m_pRootDrawerController = drawer;
return true;
}