In my iPad app, I have a tabbarController for the firstView, for the tabbarController I added a button, when we click on it, one view controller will appear. My problem is that when I try to turn this viewcontroller into PortraitUpsideDown, it did not go to PortraitUpsideDown. The code that I use in this viewController is
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return(interfaceOrientation == UIInterfaceOrientationPortrait || interfaceOrientation == UIInterfaceOrientationPortraitUpsideDown);
// returns YES; }
}
Can someone tell me what mistake I made or add something there. Thank.
source
share