0
A
回答
1
在你看來.m文件,你應該看到對底部的功能:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
// Return YES for supported orientations
if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) {
return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);
} else {
return YES;
}
}
更改相應的方向,使之正確,並引用它的按鈕。或者複製並粘貼如果然後在您的按鈕。這應該做到這一點。
相關問題
- 1. 如何將mpMoviePlayerController方向設置爲鎖定到橫向模式?
- 2. 在iPad中鎖定橫向模式
- 3. 如何在j2me應用程序中鎖定橫向模式?
- 4. 如何在Android中使用模式/密碼模式鎖定/解鎖屏幕?
- 5. 在橫向模式下鎖定特定的UIViewController +強制橫向模式
- 6. 如何從縱向模式更改爲橫向模式並鎖定它?
- 7. IPad應用程序首先進入縱向模式,然後在鎖定時處於橫向模式的屏幕解鎖後進入橫向模式
- 8. 強制縱向模式進入橫向模式並點擊返回
- 9. 在代碼中點擊UIBUtton的反饋?
- 10. 如何檢測橫向模式方向
- 11. 僅在橫向模式下啓動應用程序,並在橫向模式下鎖定應用程序
- 12. 如何在Windows 8中編寫橫向或縱向模式的代碼?
- 13. 無法在橫向模式下點擊(x,y)座標
- 14. 模擬javascript點擊來點擊橫幅
- 15. 如何以橫向顯示橫向模式?
- 16. 將MKMoviePlayerController的方向僅鎖定到橫向模式
- 17. iPad:僅將UIView方向鎖定爲橫向模式
- 18. 如何在點擊按鈕時將視頻旋轉到橫向模式?
- 19. 如何在Android中鎖定手機方向以防止橫向模式
- 20. 在橫向模式下使用Core Motion
- 21. 在橫向模式鎖定應用程序只
- 22. 如何以橫向模式打印PDF
- 23. 如何在橫向模式下
- 24. UIButton在進入橫向模式後停止響應 - iPhone
- 25. 如何使用UITabBarController應用程序進入橫向模式?
- 26. 應用程序方向(橫向或縱向)如何鎖定?
- 27. 使用Java代碼而不是XML更改橫向模式的文本(Android)
- 28. 如何使用IText和橫向格式查看頁碼
- 29. 如何在iPad上使用橫向模式的UIDatePicker?
- 30. 如何在Android 4.2中使用橫向模式