Re: Reliably getting the screen scale
Re: Reliably getting the screen scale
- Subject: Re: Reliably getting the screen scale
- From: Kyle Sluder <email@hidden>
- Date: Fri, 16 Aug 2013 19:26:08 -0400
On Aug 16, 2013, at 6:26 PM, Rick Mann <email@hidden> wrote:
>
> -layoutSubviews is not called when the view finally gets a window. Should I override setWindow: and call setNeedsLayout? What's the best way to handle this?
Since -setWindow: doesn't exist, I'd suggest overriding -viewWillMoveToWindow: to render and apply your mask. That way when your view comes on screen it will have the correct mask already. Call the same code from -layoutSubviews if necessary.
--Kyle Sluder
_______________________________________________
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