This is a message on how to reposition the cancel button. In addition, if you have only 1 button in UIAlertView , then the installation:
_alertView.cancelButtonIndex = -1;
A button will appear as a button without canceling. As far as I can tell, if you have more than 1 button, UIAlertView forces the last button to be a cancel button. Looking at the reference may give you an idea of ββhow to set properties to achieve this, but I'm not sure. Hope this helps!
source share