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 01-23-2009, 02:34 PM   #1 (permalink)
ustech001
ustech
 
Join Date: Jan 2009
Posts: 42
Default rotate subview (2nd view)

slider control switches from view1 to view2 ok:

[window removeFromSuperview];
[window addSubview:view2];
[window makeKeyVisible];

... but within willRotateToInterfaceOrientation function:

if (toInterfaceOrientation == UIInterfaceOrientationLandscapeRight) ...

... I can move controls around ok -- but rotate view2 doesn't rotate:

CGAffineTransform transform = CGAffineTRansformMakeRotation(M_PI/2); // rotate 90 degrees
[self.view2 setTransform:transform];

Any ideas to rotate the 2nd view when I rotate right (to landscape) in similator? (view1 rotates ok, automatically)
ustech001 is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,805
Threads: 89,205
Posts: 380,614
Top Poster: BrianSlick (7,129)
Welcome to our newest member, chloecoburn
Powered by vBadvanced CMPS v3.1.0

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