Keeping controls in landscape mode but allowing uitabbar to switch
问题 I have a UITabBar switches places when the iphone changes orientation and that works fine, but I want the controls within the view of the first tab to stay static regardless of the position of the phone. I feel like I'm missing something obvious? Edit: Basically, the controls are always landscape but the tab bar must switch orientations. It this possible? 回答1: For the view in which you don't want the controls to readjust, disable the autoresizing: [self.view setAutoresizesSubviews:NO]; . This