开发者

TTPhotoViewController: deactivate rotation (no orientation landscape)

开发者 https://www.devze.com 2023-02-06 23:48 出处:网络
In my project, I use the Facebook API \"three20\": https://github.com/facebook/three20/ How can I deactivate the auto rotation? The image and the thumbn开发者_开发问答ails should always displayed in

In my project, I use the Facebook API "three20": https://github.com/facebook/three20/

How can I deactivate the auto rotation? The image and the thumbn开发者_开发问答ails should always displayed in portrait and not in landscape mode.

Thanks!


Use shouldAutorotateToInterfaceOrientation:

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    return NO;
}
0

精彩评论

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