when the user click on a button on the UIAlertView the clickedButtonAtIndex method is supposed to be called, however, it doesn\'t :
UIAlertView
clickedButtonAtIndex
in the
delegate:nil is the problem. Pass self as the delegate to initWithTitle:message:delegate:cancelButtonTitle:otherButtonTitles:.
delegate:nil
self
initWithTitle:message:delegate:cancelButtonTitle:otherButtonTitles:
You're passing nil as the delegate argument. Pass self instead.
nil