Start App in Lanscape Mode

06May10
Today while doing some messing around in xcode i found a nice easy way to start your programs in lanscape mode.Add this code into your first view controller:
// Override to allow orientations other than the default portrait orientation.
– (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
// Return YES for supported orientations
if (interfaceOrientation !=UIInterfaceOrientationPortrait) {
return TRUE;
} else {
return FALSE;
}

}

Advertisements


No Responses Yet to “Start App in Lanscape Mode”

  1. Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: