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 > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 07-10-2009, 05:45 PM   #1 (permalink)
New Member
 
Join Date: Feb 2009
Posts: 79
Default Copy and Paste sideways on switch to landscape mode

I have a view that switches to landscape mode using the following code:

Code:
    UIDeviceOrientation deviceOrientation = [UIDevice currentDevice].orientation;
	if (deviceOrientation == UIDeviceOrientationLandscapeLeft) {
		[[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO];
		self.view.transform = CGAffineTransformIdentity;
		self.view.transform = CGAffineTransformMakeRotation((M_PI * (90) / 180.0)); 
		self.view.bounds = CGRectMake(10.0, 0.0, 480, 320);
	} else if (deviceOrientation == UIDeviceOrientationLandscapeRight) {
		[[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO];
		self.view.transform = CGAffineTransformIdentity;
		self.view.transform = CGAffineTransformMakeRotation((M_PI * (-90) / 180.0)); 
		self.view.bounds = CGRectMake(-10.0, 0.0, 480, 320);
    } else if (deviceOrientation == UIDeviceOrientationPortrait) {
		[[UIApplication sharedApplication] setStatusBarHidden:NO animated:NO];
		self.view.transform = CGAffineTransformIdentity;
		self.view.transform = CGAffineTransformMakeRotation((M_PI * (0) / 180.0)); 
		self.view.bounds = CGRectMake(0.0, 0.0, 320, 416);
    }
When I switch it to landscape, it all rotates fine. However, when the user tries to copy and paste, that is still sideways for some reason as in the bubble that appears to select text is sideways. Why might this be?

Also, when I rotate it back, the iPhone places a 20px white line on top and bottom for some reason...
__________________
Josh Holat Software
Check out my software at http://www.joshholat.com/iphoneapps.php
joshholat is offline   Reply With Quote
Old 07-10-2009, 05:49 PM   #2 (permalink)
New Member
 
Join Date: Feb 2009
Posts: 79
Default

Quote:
Originally Posted by joshholat View Post
Also, when I rotate it back, the iPhone places a 20px white line on top and bottom for some reason...
Never mind that part
__________________
Josh Holat Software
Check out my software at http://www.joshholat.com/iphoneapps.php
joshholat is offline   Reply With Quote
Old 05-18-2010, 01:18 PM   #3 (permalink)
Registered Member
 
Join Date: Nov 2008
Posts: 13
Default bump

anyone ever figure this out?
rowdyruckus is offline   Reply With Quote
Reply

Bookmarks

Tags
copy paste, landscape

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 251
22 members and 229 guests
@sandris, ADY, bookesp, ckgni, dacapo, Dani77, DarkAn, Davey555, Desert Diva, HemiMG, iDifferent, jakerocheleau, JasonR, LEARN2MAKE, prchn4christ, Rudy, ryantcb, Speed, themathminister, theone8one
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,230
Posts: 380,766
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:42 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0