alexanderjarvis / PXAlertView

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

Added ability for buttons to abort the dismiss of the alert view #23

Closed ghost closed 10 years ago

ghost commented 10 years ago

Hi,

I've no idea if this is anything you might be interested in but I've added a parameter to the completion callback that will allow a completion block to abort dismissing the alert view. I've added an example of this to the example project as well.

I couldn't really think of an easy way to make this backwards compatible so I understand if you don't merge because of that :) (If you like the idea but want it to be backwards compatible I guess there could be a new set of constructors that take a different block format?)

Let me know what you think.

Thanks, Sam

alexanderjarvis commented 10 years ago

Hi Sam, Thanks for this but I don't see the typical use case of this behaviour and my feeling is that it goes against convention for alert views in iOS and so I will not be merging these changes. Alex