开发者

Cannot rotate to both portrait orientations

开发者 https://www.devze.com 2023-02-26 10:13 出处:网络
i have added both the portrait orientations to the .plist for iPad and normal, how ever it is still no开发者_如何学Ct roating round to button on top portrait :S here is my code in the firstviewcontrol

i have added both the portrait orientations to the .plist for iPad and normal, how ever it is still no开发者_如何学Ct roating round to button on top portrait :S here is my code in the firstviewcontroller.m

    // Override to allow orientations other than the default portrait orientation.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    return YES;
}


Put it in all your view controllers, possible you have a base one and an overriden one for each of iPhone/iPad. Each of them must return YES (or YES/NO depending on the orientation you want to support).

0

精彩评论

暂无评论...
验证码 换一张
取 消