Seems like a shockingly trivial difference. Passing a non-nil value for otherButtonTitles to UIAlerView blows up.
Working:
UIAlertView *alert = [[UIAlertView alloc]
initWithTitle:@"Login with your credentials"
message:nil
delegate:nil
cancelButtonTitle:@"Cancel"
otherButtonTitles:nil];
Not working:
UIAlertView *alert = [[UIAlertView alloc]
initWithTitle:@"Login with your credentials"
message:nil
delegate:nil
cancelButtonTitle:@"Cancel"
otherButtonTitles:@"OK"];
What gives?
Last argument is a multiple argument, should be terminated by nil.