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 03-03-2009, 09:45 PM   #1 (permalink)
Registered Member
 
Join Date: Feb 2009
Posts: 109
Default Lost in the land of Interface Orientations

Hi,
Sorry if this is a rudimentary question, but to me, it is very frustrating. I would like to make an application with two views, both in landscape. So, I set UIInterfaceOrientation to UIInterfaceOrientationLandscapeRight in my info.plist. Then, in my applicationDidFinishLaunching, I put application.statusBarOrientation = UIInterfaceOrientationLandscapeRight. Then, in both of my viewControllers, I put, in the -(BOOL)shouldAutoRotateTo...
Code:
if(interfaceOrientation == UIInterfaceOrientation || interfaceOrientaion == UIInterfaceOrientationLandscpeLeft) {
return YES;
}
else {
return NO;
}
return(interfaceOrientation == UIInterfaceOrientationLandscapeRight)
}
That works great... for the first view. However, when I switch views, the second view is not rotated and gets cut off. To try to fix this, I rotated my second view. But then, I get some weird quirks with the keyboard, textfields, and actionsheets.GRRR!! Someone please help!
brian515 is offline   Reply With Quote
Reply

Bookmarks

Tags
autorotation, interface, landscape, orientation, rotate

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,885
Threads: 89,230
Posts: 380,765
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:23 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0