开发者

iOs View orientation

开发者 https://www.devze.com 2023-04-11 18:59 出处:网络
I use in my app MailCompo开发者_Go百科ser and if it activated in portrait landscape then it works fine, but if I activate it in landscape mode then I see only gray screen.

I use in my app MailCompo开发者_Go百科ser and if it activated in portrait landscape then it works fine, but if I activate it in landscape mode then I see only gray screen.

P.S. shouldAutorotateToInterfaceOrientation return always YES


I have implemented the mail composer in my app and in both orientation it works, just check this method

 - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    // Overriden to allow any orientation.
    return YES;
}
0

精彩评论

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

关注公众号