Re: White rectangle behind UIAlertView when subview clipsToBounds
Re: White rectangle behind UIAlertView when subview clipsToBounds
- Subject: Re: White rectangle behind UIAlertView when subview clipsToBounds
- From: David Duncan <email@hidden>
- Date: Thu, 15 May 2014 09:53:43 -0700
On May 15, 2014, at 8:42 AM, Diederik Meijer | Ten Horses <email@hidden> wrote:
> Dear list,
>
> I implemented a very straightforward UIAlertView.
>
> For some reason, on iPad, a light rectangular appears behind the alertview, here is what it looks like:
>
> http://www.tenhorses.com/apps/alertScreenshot.jpg
>
> What makes it strange is that that light rectangle is not visible when I take a screenshot, see jpg
>
> This only happens on iPad, not on iPhone.
>
> The centre part (the white card on the larger background) is a UIView that has a number of subviews.
>
> This UIView has clipsToBounds set to yes, because I have subviews flying in with animations.
>
> If I set clipsToBounds to NO, then the alertview is shown normally without any issues.
>
> Has anybody run into this and is there a way to fix this?
When it doesn’t appear in screenshots it usually means its a transient compositing error (as the screenshot re-composites the screen).
I’m not certain what exactly would cause this, but you might be served by better describing your view hierarchy (and I assume you are showing your alert with the -show method, and that it is a plain UIAlertView and not a subclass).
>
> Many thanks,
>
> Diederik
>
>
> _______________________________________________
>
> 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
--
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