I know the way to get your app to be landscape is to go and make it that way in the info.plist file, but I want my second view to start in landscape. How do i do this?
Create a new view controller for your second view and present it modally.
In your new view controller implement:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
to return only the orientations you wish to support.
See also
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.