Use UIAlertView cancelButtonIndex instead of magic constant.