I am trying to develop a video player application. In which when user clicks on the video it will start play in landscape mode. in the situation i am forcing user to rotate the screen. Is this is against iOS UI guidelines. Because of this am i gona face any problem in app review.Please guide me.
Asked
Active
Viewed 554 times
1
-
2No this is not against of iOS UI guidelines. You can proceed with your define flow. – MinuMaster May 30 '17 at 04:37
-
Thank You. but youtube and all are working in that manner so i was confused – Vishnu May 30 '17 at 04:44
-
Possible duplicate of [How to force view controller orientation in iOS 8?](https://stackoverflow.com/questions/26357162/how-to-force-view-controller-orientation-in-ios-8) – Sunny Shah May 30 '17 at 05:06
1 Answers
2
Swift 3.0
Add this in the viewDidLoad():
let value = UIInterfaceOrientation.landscapeLeft.rawValue
UIDevice.current.setValue(value, forKey: "orientation")
And,
override func shouldAutorotate() -> Bool {
return true
}

Jaydeep Vora
- 6,085
- 1
- 22
- 40