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-09-2010, 10:22 AM   #26 (permalink)
jbullfrog
Registered Member
 
Join Date: Jun 2009
Posts: 140
Default ROTATES VIEW TO LANDSCAPE MODE AND SETS THE STAGE SIZE

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
jbullfrog is offline   Reply With Quote
 

» Advertisements
» Online Users: 300
18 members and 282 guests
ADY, antonwilliams, dacapo, dcool, HemiMG, iosdevjtp, jakerocheleau, leahov, MarkC, masc2279, michelle, morands, MozyMac, nobre84, 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:15 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.