iphone6.0simulator(xcodeversion4.5) how to call shouldAutorotateToInterfaceOrientation?

// Override to allow orientations other than the default landscape orientation.

  • (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    return UIInterfaceOrientationIsLandscape( interfaceOrientation );
    //return UIInterfaceOrientationIsPortrait(interfaceOrientation );

// switch to this line if you want to set portrait view
// return UIInterfaceOrientationIsPortrait( interfaceOrientation );
}

Looks right to me.

You may want to check this thread though
http://www.cocos2d-x.org/boards/6/topics/15447?r=15734#message-15734