White rectangle behind UIAlertView when subview clipsToBounds

2014-05-15 Thread Diederik Meijer | Ten Horses
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

Re: White rectangle behind UIAlertView when subview clipsToBounds

2014-05-15 Thread David Duncan
On May 15, 2014, at 8:42 AM, Diederik Meijer | Ten Horses diede...@tenhorses.com 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:

Re: White rectangle behind UIAlertView when subview clipsToBounds

2014-05-15 Thread Diederik Meijer | Ten Horses
Hi David, Many thanks for your quick response! UIAlertView is called here: -(void)welcomeAlert { if (![[NSUserDefaults standardUserDefaults] objectForKey:@welcomeAlertShown] || [[[NSUserDefaults standardUserDefaults] valueForKey:@welcomeAlertShown] isEqual:@NO]) { UIAlertView *av

Re: White rectangle behind UIAlertView when subview clipsToBounds

2014-05-15 Thread Alex Zavatone
It appears as if you're doing this on iOS (even though you didn't mention the platform). In this case, can't you run this through the Simulator and turn on the coloring options under the Debug menu? On May 15, 2014, at 2:23 PM, Diederik Meijer | Ten Horses wrote: Hi David, Many thanks for

Re: White rectangle behind UIAlertView when subview clipsToBounds

2014-05-15 Thread Kyle Sluder
On Thu, May 15, 2014, at 12:10 PM, Alex Zavatone wrote: It appears as if you're doing this on iOS (even though you didn't mention the platform). Considering UIAlertView only exists on iOS, along with any other UI* prefixed class names, I would think that iOS would be obvious. --Kyle Sluder

Re: White rectangle behind UIAlertView when subview clipsToBounds

2014-05-15 Thread Diederik Meijer | Ten Horses
Update: this sequence of steps is a workaround that avoids the problem: 1. Setting the view that should remain invisible hidden; 2. Setting clipsToBounds on its parent to NO; 3. Now create and show the alert; 4. On a tap on the 'OK' button, reverse 1 and 2, meaning: 5. Set clipsToBounds on the

Re: White rectangle behind UIAlertView when subview clipsToBounds

2014-05-15 Thread Alex Zavatone
Of course. That's why I said it appears you're doing this on iOS. But it's always nice to not have to read in and figure out which platform the person is targeting. If anyone's ever been on a dev team and had a back and forth with QA continually asking for more info, you know what I'm