簡體   English   中英

TSAlertView支持設備旋轉

[英]TSAlertView enables device rotation

因為我需要更多自定義UIAlertView,所以我正在使用。 我的問題是,即使禁用了它,它也可以使設備向任何方向旋轉。

在AlertView出現之前,橫向模式已停用,但是當我調用show時,任何方向都是可能的。

這里發生了什么? 我沒有UIAlertView的這種行為。

轉到@implementation TSAlertViewController和檢查shouldAutorotateToInterfaceOrientation

@implementation TSAlertViewController
- (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation
{
    return NO;
}

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM