Develop
2013.10.14 14:38
[ios] UIAlertView 초간단 샘플 ㅎㅎ
조회 수 46206 댓글 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){ } } }
-
프로그램 문서 관리 (Doxygen)
-
프로그래밍에서 foo, bar 함수의 유래
-
프로그래밍 소스 관련 사이트..
-
페이팔에서 돈 찾기 (Paypal withdraw)
-
캘리포니아 운전면허 족보
-
최근 논문 자료 (2011/01/03, 만현형한테 보낸거..)
-
참고하고 지울 자료.. 집에서 바야지.. ㅋㅋ
-
정리할 자료.
-
자주 쓰는 Docker 명령어 alias
-
이어서 작업할 내용~
-
웹페이지 성능 테스트 툴 설명
-
알고리즘 성능분석