![](/img/trans.png)
[英]Should SpriteKit games support both portrait and landscape orientations? Or, should they support only one of those orientations?
[英]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.