title: Add UIViewController in cocos2d
body: <p>i want to display a UIViewController in a cocos2d project, so i have do this in my CCLayer class:</p>
  
  <pre><code>-(void)displayMainMenu {
      CGSize screenSize = [CCDirector sharedDirector].winSize;
      [CCMenuItemFont setFontName:@"Marker Felt"];
      [CCMenuItemFont setFontSize:26];
  
      CCMenuItemFont *openViewC = [CCMenuItemFont itemWithString:@"Open View" target:self selector:@selector(loadMyViewController)];
      mainMenu = [CCMenu menuWithItems:openViewC, nil];
      [self addChild:mainMenu z:0];
  }
  
  -(void) loadMyViewController{
  
      //Add the tableview when the transition is done
      myView = [[MyViewController alloc] init];
      UIView *viewHost = hostView.view;
  
      [[[CCDirector sharedDirector] view] addSubview:viewHost];
  }
  </code></pre>
  
  <p>and then in my ViewController to return to my CCLayer i do this:</p>
  
  <pre><code>- (IBAction)exitAction:(id)sender
      {
      [self.view removeFromSuperview];
  
      [[CCDirector sharedDirector] pushScene: [MainMenu scene]]; //i need it or not?
  }
  </code></pre>
  
  <p>and all work, i use cocos2d v2.0, but i want know if there is a better way to add a UIViewController in a cocos2d scene, thanks!</p>