alexanderjarvis / PXAlertView

A drop-in replacement for UIAlertView that is more customisable and skinnable
MIT License
592 stars 95 forks source link

orientation #6

Closed tljackyi closed 10 years ago

tljackyi commented 11 years ago

I change screen orientation, during orientation the AlertView background color become black

alexanderjarvis commented 10 years ago

Thanks for pointing this out. I thought it was just the simulator at first and I am not sure why it is doing this so will have a closer look. You're welcome to submit a pull request if you can fix it.

AbbieStough commented 10 years ago

I explicitly set the window background to clear to fix the issue.

self.alertWindow.backgroundColor = [UIColor clearColor];

This could probably be set in the init of the class, but I'm using pods so I just set it in my category.

alexanderjarvis commented 10 years ago

Thanks for this - I've just confirmed that it fixes the issue :+1:

Will commit the change now.