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

Method viewDidLoad

CrossApp/controller/CADrawerController.cpp:100–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100void CADrawerController::viewDidLoad()
101{
102 for (int i=0; i<2; i++)
103 {
104 m_pContainer[i] = new CAView();
105
106 this->getView()->addSubview(m_pContainer[i]);
107 m_pContainer[i]->release();
108 }
109
110 this->achieveLayout();
111
112 m_pContainer[0]->setLayout(m_rHideLayout[0]);
113 m_pContainer[0]->setAnchorPoint(DPoint(0.5f, 0.5f));
114 m_pContainer[1]->setLayout(m_rHideLayout[1]);
115 m_pContainer[1]->setAnchorPoint(DPoint(0.0f, 0.5f));
116
117 m_pLeftViewController->addViewFromSuperview(m_pContainer[0]);
118 m_pRightViewController->addViewFromSuperview(m_pContainer[1]);
119
120 m_bShow = true;
121 this->hideLeftViewController(false);
122}
123
124void CADrawerController::viewDidUnload()
125{

Callers

nothing calls this directly

Calls 9

achieveLayoutMethod · 0.95
DPointClass · 0.85
getViewMethod · 0.80
setLayoutMethod · 0.80
setAnchorPointMethod · 0.80
addViewFromSuperviewMethod · 0.80
addSubviewMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected