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 04-16-2010, 11:23 PM   #2 (permalink)
iisword
Knows SQL
 
iisword's Avatar
 
Join Date: Oct 2009
Location: Somewhere the streets are on fire, the sewers are flooded, and the cats are high on catnip
Posts: 529
iisword is on a distinguished road
Default

Quote:
Originally Posted by Pitfall View Post
Pretty funny... Launch your App with the iPad lying flat on a table and ask for the deviceOrientation. The result is UIDeviceOrientationFaceUp.

What I really want to know is what is the orientation of the "desktop" or "home page".

The problem is this:

Your user has rotated the iPad into some position, watching the icons animate into position. He sees your icon and touches it. So when your App launches it is going to want to match that rotation. So you read the device orientation and go from there.

But wait... If the user rotated the iPad and then laid it down flat, he is still looking at your icon facing him. But when he launches your app and you read the device orientation, all you know is UIDeviceOrientationFaceUp. You want to rotate your App so that it is facing the user, but you don't have the correct information until he picks up the device.

Does anyone know how to read the orientation of the "desktop"?

Thanks.
I don't have an iPad, so I'm not quiet sure how the up and down orientation works.

Maybe try splash view first...
__________________
iisword is offline   Reply With Quote
 

» Advertisements
» Online Users: 352
11 members and 341 guests
AdamL, baja_yu, bignoggins, deloisig73, Duncan C, HemiMG, heshiming, hussain1982, jbro, krisk, mediaspree
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,558
Threads: 94,079
Posts: 402,741
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Garros1990
Powered by vBadvanced CMPS v3.1.0

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