开发者

Cannot rotate to both portrait orientations

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜