alexanderjarvis / PXAlertView

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

Fix button background on touch #19

Closed shortcutman closed 10 years ago

shortcutman commented 10 years ago

The customisation added in pull request #3 seems incomplete in its implementation of button backgrounds on a touch event. I have provided a complete implementation which seems to fit with the code that was already present. Since button backgrounds are not well supported by the iOS API, I've used the method described in this stack overflow answer.

I added the now working method to the 'simple customisation' alert view in the demo project for completeness too. Both methods work with the functionality demonstrated in the 'two button alert view'.

If this isn't the expected behaviour, I'm happy to fix it up since I require this kind of functionality and rolling it back in is no problem.

alexanderjarvis commented 10 years ago

Thank you for the pull request. I just tested this before merging and you are correct.

shortcutman commented 10 years ago

Thanks!