Develop
2013.10.14 14:38
[ios] UIAlertView 초간단 샘플 ㅎㅎ
조회 수 46102 댓글 0
UIAlertView와 Delegate 함수 초간단 샘플~
//경고창 1. UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"A" message:@"" delegate:self cancelButtonTitle:@"확인" otherButtonTitles:@"취소", nil]; [alert show]; [alert release]; //경고창 2 UIAlertView *alert =[[UIAlertView alloc]initWithTitle:@"B" message:@"" delegate:self cancelButtonTitle:@"확인" otherButtonTitles:@"취소", nil]; [alert show]; [alert release]; //경고창 3 UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"C" message:@"" delegate:self cancelButtonTitle:@"확인" otherButtonTitles:@"취소", nil]; [alert show]; [alert release]; //경고창의 버튼 이벤트를 감지하는 델리게이트. - (void)alertView:(UIAlertView *)alertView didDismissWithButtonIndex:(NSInteger)buttonIndex { //경고창의 타이틀을 비교해서 경고창을 구별한다. if ( [[alertView title] isEqualToString:@"A"]) { if(buttonIndex==0){ }else { } } else if ( [[alertView title] isEqualToString:@"B"]) { if(buttonIndex==0){ } } else if ( [[alertView title] isEqualToString:@"C"]) { if(buttonIndex==0){ } } }
번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|---|
801 | Develop | [c] 소켓의 세가지 동작모드 | hooni | 2003.04.23 | 6898 |
800 | Develop | [c] pcapdump 파일 분석 하는 프로그램.. ㅋㅋ | hooni | 2013.04.23 | 6898 |
799 | Develop | [c] 단기과정[01/10] 과제.. swap(any data, ..) | hooni | 2003.04.23 | 6904 |
798 | Develop | [c] 맵서치인 듯(옛날 컴에서 찾은 자료) | hooni | 2013.04.23 | 6904 |
797 | Develop | [c] 프로세스 정보 출력하기.. | hooni | 2003.04.23 | 6906 |
796 | Develop | [php] 빔 프로젝터 예약 프로그램.. ㅋㅋ | hooni | 2013.04.23 | 6914 |
795 | Develop | [c] 도메인(호스트)으로 IP정보 알아오기.. (nslookup과 비슷) | hooni | 2013.04.23 | 6921 |
794 | Develop | [c] 단기과정[01/06] sizeof, 실수표현, 메모리, 연산자 | hooni | 2003.04.23 | 6927 |
793 | Develop | [c] 숫자 맞추는 게임.. | hooni | 2013.04.23 | 6927 |
792 | Develop | [js] php의 number_format() 함수와 같은.. ㅋㅋ | hooni | 2013.04.23 | 6929 |
791 | Develop | [js] 네이버, 다음의 플레이어 스킨 | hooni | 2013.04.23 | 6942 |
790 | Develop | 라이브러리에 대한 설명 (static & dynamic library) | hooni | 2013.04.23 | 6942 |