Develop
2013.10.14 14:38
[ios] UIAlertView 초간단 샘플 ㅎㅎ
조회 수 55958 댓글 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){ } } }
번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|---|
363 | Develop | [c] 소수 구하기 #2 (입력한 숫자가 소수인지 판별하기..) | hooni | 2013.04.23 | 12070 |
362 | Develop |
[c++] 레지스트리 등록 예제
1 ![]() |
hooni | 2013.04.23 | 9721 |
361 | Develop |
[c++] SetWindowPos함수를 이용한 크기조절 예제
1 ![]() |
hooni | 2013.04.23 | 12466 |
360 | Develop |
[c++] 바탕화면 테두리에 자석처럼 붙는 스냅효과..
![]() |
hooni | 2013.04.23 | 9813 |
359 | Develop |
[c++] 트리컨트롤 스텝 3 예제..
![]() |
hooni | 2013.04.23 | 9097 |
358 | Develop |
[c++] 트리컨트롤 스텝 2 예제..
![]() |
hooni | 2013.04.23 | 7895 |
357 | Develop |
[c++] 트리컨트롤 예제1 ㅋㅋ
![]() |
hooni | 2013.04.23 | 7938 |
356 | Develop |
[c++] 윈도우 프로세스뷰어 분석.. ㅋㅋ
![]() |
hooni | 2013.04.23 | 9817 |
355 | Develop |
[c++] 레지스트리 편집하는 부분..ㅡㅡ;
![]() |
hooni | 2013.04.23 | 8997 |
354 | Develop | [js] 서서히 나타나는 화면.. ㅋㅋ | hooni | 2013.04.23 | 7181 |
353 | Develop | [php] 이미지 회전시키기(gd) | hooni | 2013.04.23 | 8216 |
352 | Develop | [C++] 18일차 과제물, String 클래스 디자인 【 C++ 문제 】 | hooni | 2013.04.23 | 8161 |