Tutorial details

Build in Landscape | App Code for Sale | Preview

Build in Landscape | iOS Tutorial

How to set your app to landscape and how to build in this orientation

Overview PAGE TOP

Reference: http://www.geekylemon.com/WEBPROTECT-xcodebuildinlandscape.htm

In this tutorial i will be show you how to set your app to landscape and how to build in this orientation Features:

  • Setting orientation in the p.list

Most games on the app store now are set to landscape and this is a huge advantage to portrait apps and it gives it the feel of a handheld games console, a more natural way to play games

What To Do! PAGE TOP

In the p.list add a new bar at the bottom and select Initial interface orientation and set it to the direction you wish it to display

ViewController.m PAGE TOP

@implementation ViewController
// Override to allow orientations other than the default portrait orientation.
-(BOOL)shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation)interfaceOrientation {
// Return YES for supported orientations
return (interfaceOrientation == UIInterfaceOrientationLandscapeLeft);
}
@end

Reference PAGE TOP

http://www.geekylemon.com/WEBPROTECT-xcodebuildinlandscape.htm

0 Comments Leave a comment

Please login in order to leave a comment.

Newest first
!

Sign-in to your Chupamobile Account.

The Easiest way to Launch your next App or Game.

Join Chupamobile and get instant access to thousands of ready made App and Game Templates.

Creating an account means you’re okay with Chupamobile’s Terms of Service and Privacy Policy.