Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 12-23-2008, 07:33 PM   #1 (permalink)
boliva
Registered Member
 
Join Date: Aug 2008
Location: Chile
Age: 32
Posts: 28
boliva is on a distinguished road
Default Utility application template and autorotation; force flipside view to always display

Just what the post title says... I've created an application using the Utility template in order to handle two 'flippable' views. I'm not using Interface Builder at all but creating all of my interfaces by code.

I wish to handle device auto rotation but only for the main view, with the flipside view always displaying in portrait mode. If of any importance, my application has the status bar hidden and my flipside view is added through an UINavigationController (instead of using a UINavigationBar as supplied by the application template).

When implementing the shouldAutorotateToInterfaceOrientation method, it only works on the RootViewController. I tried not implementing it there, only on the main view controller but it doesn't work. So I implemented it on the RootViewController, and have conditioned its return value to the display of the flipside view. This way I can prevent the view to rotate itself when the flipside view is displayed.

This is half the solution to the problem, however. If I'm on the main view rotated to a landscape orientation and display the flipside view, it doesn't display properly. I've tried several methods to make it appear with a portrait orientation regardless of the physical orientation of the device with no luck. I've looked through several similar threads and haven't found an answer, so any help would be greatly appreciated.

Best regards,
boliva is offline   Reply With Quote
 

» Advertisements
» Online Users: 420
12 members and 408 guests
AragornSG, casgali78, dansparrow, EvilElf, freewind, gogoman, juanramoney, QuantumDoja, Sami Gh, smashing, tymex, zulemamn37
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,606
Threads: 94,084
Posts: 402,783
Top Poster: BrianSlick (7,990)
Welcome to our newest member, casgali78
Powered by vBadvanced CMPS v3.1.0

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