alexanderjarvis / PXAlertView

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

Displaced 2nd alert view and dead interface #34

Closed hbugdoll closed 10 years ago

hbugdoll commented 10 years ago

I've reported already this as comments on a closed issue (https://github.com/alexanderjarvis/PXAlertView/issues/13):

Showing an alert view inside the completion block from an other alert view (in connection to UISplitViewController) leads to following issue on iPad (testet under iOS 7.x) in landscape orientation:

After dismissing second alert view the interface is "dead". No more interaction with the app is possible… The second alert view is then displaced (center position of whole screen is shifted in x-direction).

This issue you can reproduce by taking the demo project, adding a new button in iPad storyboard (is yet incomplete) connected to showAlertInsideAlertCompletion: and run it on iPad in landscape orientation. See screenshots!

1st alert view: 1st alert view

2nd alert view inside completion block of 1st alert view: 2nd alert view inside completion block of 1st alert view

The problems went away when creating a new alert window (UIWindow with UIWindowLevelAlert) for every alert view resp. do not reusing the existing alert window. I guess the basic problem is located in way of reusing the single alert window.

alexanderjarvis commented 10 years ago

Pull request welcome.

hbugdoll commented 10 years ago

+1

Thx a lot.