• 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: How to detect rotation in progress in viewDidLayoutSubview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to detect rotation in progress in viewDidLayoutSubview


  • Subject: Re: How to detect rotation in progress in viewDidLayoutSubview
  • From: David Duncan <email@hidden>
  • Date: Wed, 30 Nov 2016 11:25:36 -0500

Create and use a subview. There is no significant cost to an additional content-less view.

--
David Duncan @ My iPhone

> On Nov 30, 2016, at 9:46 AM, Andreas Falkenhahn <email@hidden> wrote:
>
>> On 29.11.2016 at 22:28 David Duncan wrote:
>>
>> Correct, because the owning UIWindow owns the frame of the view
>> controller’s view, and may change it at any time.
>> The simplest way to fix your specific issue is to just set the
>> contentMode to AspectFit. This will automatically center and scale
>> the content for the current orientation to fit within the given bounds.
>
> Hmm, I'm afraid that won't work because sometimes I also need the
> UIView to appear at a different fixed location that is not equal
> to the center, e.g. in the top-left or bottom-right corner of
> the UIWindow. Any other ideas?
>
> --
> Best regards,
> Andreas Falkenhahn                            mailto:email@hidden
>

_______________________________________________

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: 
 >How to detect rotation in progress in viewDidLayoutSubview (From: Andreas Falkenhahn <email@hidden>)
 >Re: How to detect rotation in progress in viewDidLayoutSubview (From: David Duncan <email@hidden>)
 >Re: How to detect rotation in progress in viewDidLayoutSubview (From: Andreas Falkenhahn <email@hidden>)
 >Re: How to detect rotation in progress in viewDidLayoutSubview (From: David Duncan <email@hidden>)
 >Re: How to detect rotation in progress in viewDidLayoutSubview (From: Andreas Falkenhahn <email@hidden>)
 >Re: How to detect rotation in progress in viewDidLayoutSubview (From: David Duncan <email@hidden>)
 >Re: How to detect rotation in progress in viewDidLayoutSubview (From: Andreas Falkenhahn <email@hidden>)
 >Re: How to detect rotation in progress in viewDidLayoutSubview (From: David Duncan <email@hidden>)
 >Re: How to detect rotation in progress in viewDidLayoutSubview (From: Andreas Falkenhahn <email@hidden>)

  • Prev by Date: Re: Gestures cause crash in Sierra
  • Next by Date: Re: Where are the gears?
  • Previous by thread: Re: How to detect rotation in progress in viewDidLayoutSubview
  • Next by thread: Vertically Centered Colon
  • Index(es):
    • Date
    • Thread