簡體   English   中英

無法同時旋轉到兩個縱向

[英]Cannot rotate to both portrait orientations

我已經將縱向和縱向都添加到了iPad的.plist中,並且正常添加,但是它仍然沒有旋轉到頂部縱向上的按鈕:S這是我在firstviewcontroller.m中的代碼

    // Override to allow orientations other than the default portrait orientation.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    return YES;
}

將其放在所有視圖控制器中,可能每個iPhone / iPad都有一個基礎控制器和一個替代控制器。 它們每個都必須返回YES(或者是YES / NO,這取決於您要支持的方向)。

暫無
暫無

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

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