In my view controller, I implement two methods for controlling interface orientation:
- (NSUInteger)supportedInterfaceOrientations { return UIInterfaceOr
In order to change the orientation setting, select menu Targets->Summary-> Supported Device Orientations and change as following.
If the buttons for the orientation are dark then that means you have selected it as one of the orientation.