놀랄만큼 사소한 차이처럼 보입니다. otherButtonTitles
에 대한 nil
이 아닌 값을 UIAlerView
에 전달하면 오류가 발생합니다.iOS/Cocoa : UIAlertView throwing EXC_BAD_ACCESS
작업 :
UIAlertView *alert = [[UIAlertView alloc]
initWithTitle:@"Login with your credentials"
message:nil
delegate:nil
cancelButtonTitle:@"Cancel"
otherButtonTitles:nil];
작동하지 :
무엇 제공UIAlertView *alert = [[UIAlertView alloc]
initWithTitle:@"Login with your credentials"
message:nil
delegate:nil
cancelButtonTitle:@"Cancel"
otherButtonTitles:@"OK"];
?