Exemplo n.º 1
0
		void ViewController::loadView()
		{
			if( mView == nullptr ) {
				mView = po::scene::View::create();
			}

			connectViewEvents();
			viewDidLoad();
		}
Exemplo n.º 2
0
bool UpdateLayer::initWithData()
{
    if (!SGBaseLayer::init(NULL, sg_updateLayer)) {
        return false;
    }

    viewDidLoad();
    setUpdateLayerShow();
    
    this->schedule(schedule_selector(UpdateLayer::checkingUpdate), UPDATE_TICK_TIME);
	
	return true;
}