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

Method setRootViewController

CrossApp/view/CAWindow.cpp:51–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51void CAWindow::setRootViewController(CrossApp::CAViewController *var)
52{
53 if (m_pRootViewController)
54 {
55 m_pRootViewController->removeViewFromSuperview();
56 CC_SAFE_RELEASE_NULL(m_pRootViewController);
57 }
58
59 if (var)
60 {
61 var->retain();
62 m_pRootViewController = var;
63 m_pRootViewController->addViewFromSuperview(this);
64 m_pRootViewController->getView()->setZOrder(CAWindowZOderBottom);
65 }
66}
67
68CAViewController* CAWindow::getRootViewController()
69{

Callers 3

initMethod · 0.80
initMethod · 0.80

Calls 5

retainMethod · 0.80
addViewFromSuperviewMethod · 0.80
getViewMethod · 0.80
setZOrderMethod · 0.45

Tested by

no test coverage detected