If no cancel button is set, Apple
will set it to numberOfButtons - 1.
Try setting cancelButtonIndex
to -1
and see if that helps.
W
EDIT: Well thats a pain. Since iOS7 I have been having lots of styling issues with the UIAlertView, specifically not being able to style it like previously. To help out I have made available a few files on github. Just drop them into your project and you will have a clone of UIAlertView that you can fully customise.
https://github.com/awgeorge/WGAlertView
W