• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: iPhone: question about orientation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iPhone: question about orientation


  • Subject: Re: iPhone: question about orientation
  • From: "Eric E. Dolecki" <email@hidden>
  • Date: Thu, 21 Jan 2010 12:36:44 -0500

Wouldn't autorotation fall into the same category of problem? Should I also
look into device rotation in tandem with orientation just in case
orientation fails?

On Thu, Jan 21, 2010 at 12:17 PM, Luke Hiesterman <email@hidden>wrote:

> UIViewcontroller with autorotation is the best way to do this. Then you
> don't need to deal with UIDevice orientations.
>
> Luke
>
> Sent from my iPhone.
>
>
> On Jan 21, 2010, at 8:30 AM, "Eric E. Dolecki" <email@hidden> wrote:
>
>  I am sending a view orientation data which works great, if the phone is
>> held
>> up...
>>
>> UIDeviceOrientation orientation = [[UIDevice currentDevice] orientation];
>>
>> if( orientation == UIDeviceOrientationLandscapeLeft || orientation ==
>> UIDeviceOrientationLandscapeRight ){
>>
>> [myView iAmLandscape:YES];
>>
>> } else if(orientation == UIDeviceOrientationPortrait) {
>>
>> [myView iAmLandscape:NO];
>>
>> }
>>
>>
>> However if I have the phone angled back almost flat in my hand, it isn't
>> caught ... UIDeviceOrientationFaceUp and UIDeviceOrientationFaceDown seem
>> to
>> screw this up. When some people use their phone, they hold it flat in
>> their
>> hand which seems to produce an orientation of face up, but doesn't provide
>> portrait or landscape information.
>>
>>
>> What's the best way to tackle this?
>> _______________________________________________
>>
>> Cocoa-dev mailing list (email@hidden)
>>
>> Please do not post admin requests or moderator comments to the list.
>> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>>
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>>
>


--
http://ericd.net
Interactive design and development
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: iPhone: question about orientation
      • From: Luke Hiesterman <email@hidden>
References: 
 >iPhone: question about orientation (From: "Eric E. Dolecki" <email@hidden>)
 >Re: iPhone: question about orientation (From: Luke Hiesterman <email@hidden>)

  • Prev by Date: Re: iPhone: question about orientation
  • Next by Date: Re: iPhone: question about orientation
  • Previous by thread: Re: iPhone: question about orientation
  • Next by thread: Re: iPhone: question about orientation
  • Index(es):
    • Date
    • Thread