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 01-23-2009, 02:34 PM   #1 (permalink)
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
Old 01-26-2009, 01:42 PM   #2 (permalink)
ustech
 
Join Date: Jan 2009
Posts: 42
Default yup

moved some controls around -- works ok
ustech001 is offline   Reply With Quote
Reply

Bookmarks

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
» Stats
Members: 158,309
Threads: 89,033
Posts: 379,817
Top Poster: BrianSlick (7,086)
Welcome to our newest member, alapimba
Powered by vBadvanced CMPS v3.1.0

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