[英]iOs View orientation
我在我的應用程序MailComposer中使用,如果它在縱向模式下激活,則可以正常工作,但是如果在橫向模式下激活,則只能看到灰屏。
PS應該AutorotateToInterfaceOrientation返回總是YES
我已經在我的應用程序中實現了郵件編輯器,並且在兩個方向都可以正常工作,只需檢查此方法即可
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
// Overriden to allow any orientation.
return YES;
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.