Re: How to detect rotation in progress in viewDidLayoutSubview
Re: How to detect rotation in progress in viewDidLayoutSubview
- Subject: Re: How to detect rotation in progress in viewDidLayoutSubview
- From: Andreas Falkenhahn <email@hidden>
- Date: Wed, 30 Nov 2016 15:46:39 +0100
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