• 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: loading UIView in correct orientation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: loading UIView in correct orientation


  • Subject: Re: loading UIView in correct orientation
  • From: David Duncan <email@hidden>
  • Date: Fri, 03 Aug 2012 10:00:00 -0700

On Aug 3, 2012, at 9:22 AM, Gerriet M. Denkmann <email@hidden> wrote:

>
> I have a subclass of UIViewController which displays a small view in the center of the display.
> shouldAutorotateToInterfaceOrientation: returns YES.
> This view is only shown on demand.
>
>
> The problem:
> If the device is in Portrait-Up position when the ViewController is created then everything is fine.
> Otherwise the centered view is loaded in the wrong position, and I have to rotate the device by 90° and back again, to get the centered view right.
>
> Is there a way to force the ViewController to apply the proper rotation when it is initially loaded?


This is basically the same problem as your other question – your not using view controller containment, so the behavior is very different.
--
David Duncan


_______________________________________________

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


References: 
 >rotating UIView without changing size (From: "Gerriet M. Denkmann" <email@hidden>)
 >loading UIView in correct orientation (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Re: rotating UIView without changing size
  • Next by Date: Re: rotating UIView without changing size
  • Previous by thread: loading UIView in correct orientation
  • Next by thread: Re: rotating UIView without changing size
  • Index(es):
    • Date
    • Thread