I convert my tabbar based iphone app to ipad version with different ~ipad.xib, the only different is the ui element size. Now my question is that it can’t auto rotate the screen in ipad version, i.e. I upsidedown the ipad, but the ui don’t rotate upsidedown.
I convert my tabbar based iphone app to ipad version with different ~ipad.xib, the
Share
You need to return YES for the
shouldAutorotateToInterfaceOrientation:for all view controllers featured in your tab bar, for iPad only (UI_INTERFACE_IDIOM()...). The default code from your iPhone controllers probably only returns YES if it is portrait, if that is all you selected when initially creating the project.Here is the code I use for this situation (iPhone, portrait only, iPad, all orientations):