![](/img/trans.png)
[英]Efficient storage of two dimensional data that enables “rotation” of the data by row or column
[英]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.