사이에 취소 버튼을 추가 할 수 있습니다. 두 개의 다른 버튼 사이의 가운데에 취소 버튼이 있어야합니다. cancelButtonIndex를 1로 설정하려고했지만 두 개의 다른 버튼이있는 경우 인덱스 0과 1에 배치합니다. 버튼의 이름을 변경할 수는 있지만 취소 버튼의 어두운 파란색 포맷을 원합니다. .어떻게 (스택됩니다) 세 개의 버튼이있는 UIAlertView를 만들기 위해 노력하고 UIAlertView (아이폰 OS)에서 (스택)이 개 다른 버튼
EDIT : ** 참고 : 3 개의 버튼이 기본적으로 '기타'버튼처럼 보이는 경우에만 올바른 순서로 3 개의 버튼을 얻는 방법을 알고 있습니다. 취소 버튼의 취소 버튼을 진한 파란색 배경으로 지정하여 일반 취소 버튼처럼 보이게하고 싶습니다. **
나는 아무 소용
UIAlertView *alert = [[[UIAlertView alloc] initWithTitle:title message:msg delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:button1Title,button2Title,nil] autorelease];
alert.cancelButtonIndex = 1;
[alert show];
및
UIAlertView *alert = [[[UIAlertView alloc] initWithTitle:title message:msg delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:nil] autorelease];
alert.cancelButtonIndex = 1;
[alert addButtonWithTitle:button1Title];
[alert addButtonWithTitle:button2Title];
[alert show];
및
UIAlertView *alert = [[[UIAlertView alloc] initWithTitle:title message:msg delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:addButtonWithTitle:button1Title,nil] autorelease];
alert.cancelButtonIndex = 1;
[alert addButtonWithTitle:button2Title];
[alert show];
을 시도했습니다. 내가하려는 일을 성취 할 수 있습니까?
완벽하게 작동합니다 - 감사합니다! – SAHM
어떻게 신속하게 구현할 수 있습니까? – iOS