zoul / Lambda-Alert

Simple UIAlertView wrapper that uses blocks for button actions.
http://github.com/zoul/Lambda-Alert
MIT License
100 stars 12 forks source link

Add support for shouldEnableFirstOtherButton delegate handling #8

Open MigrantP opened 11 years ago

MigrantP commented 11 years ago

This involves providing a block so the user can respond to the delegate method, and an (admittedly ugly but necessary) additional init method. The extra init method is needed because if you don't provide an "other button" in UIAlertView init, it will never call alertViewShouldEnableFirstOtherButton, even if you add other buttons later.