Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 04-28-2010, 01:08 PM   #27 (permalink)
bbrownnc
Registered Member
 
Join Date: Apr 2010
Posts: 2
Default

Quote:
Originally Posted by jbullfrog View Post
What if I am setting this

Code:
- (void)applicationDidFinishLaunching:(UIApplication *)application {
//====================================================
		//ROTATES VIEW TO LANDSCAPE MODE AND SETS THE STAGE SIZE
		CGAffineTransform rotate = CGAffineTransformMakeRotation(1.57079633);
		[window setTransform:rotate];
		
		CGRect contentRect = CGRectMake(0, 0, 480, 320); 
		window.bounds = contentRect; 
		[window setCenter:CGPointMake(160.0f, 240.0f)];
		//====================================================

}
This forces the app to be in landscape right (home button right)

But what if I need to keep this, and also support landscape left?

Could anyone help me figure this out?

Thanks
in the shouldAutorotateToInteraceOrientation insert the following code
return (interfaceOrientation == UIInterfaceOrientationLandscapeLeft || interfaceOrientation == UIInterfaceOrientationLandscapeRight);
bbrownnc is offline   Reply With Quote
 

» Advertisements
» Online Users: 301
16 members and 285 guests
ADY, antonwilliams, dacapo, dcool, HemiMG, iosdevjtp, jakerocheleau, leahov, MarkC, masc2279, morands, MozyMac, sly24, smithdale87, thh022, vogueestylee
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,877
Threads: 89,222
Posts: 380,720
Top Poster: BrianSlick (7,129)
Welcome to our newest member, peterkessler45
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 10:14 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.