Można to zrobić programowo
override func shouldAutoRotate() -> Bool {
if UIDevice.currentDevice().userInterfaceIdiom == .Pad {
return true
}
else {
return false
}
}
a następnie
override func supportedInterfaceOrientations() -> Int {
return UIInterfaceOrientation.Portrait.rawValue
}
lub jakąkolwiek inną orientację rotacji, który chcesz mieć domyślnie.
To powinno wykryć, czy urządzenie, z którego korzystasz, to iPad i zezwalać na obracanie tylko tego urządzenia.
EDIT: Ponieważ ty tylko chcesz portret na iPhone,
override func supportedInterfaceOrientations() -> Int {
if UIDevice.currentDevice().userInterfaceIdiom == .Phone {
return UIInterfaceOrientation.Portrait.rawValue
}
else {
return Int(UIInterfaceOrientationMask.All.rawValue)
}
}
To jest dobre. Programowo nie pomaga ominąć sklepu-gate-keeper-keeper. – mxcl
Myślę, że możesz zrobić lepiej, Chris – Harout360