Develop
2013.10.14 14:38
[ios] UIAlertView 초간단 샘플 ㅎㅎ
Views 46170 Comment 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){ } } }
No. | Category | Subject | Author | Date | Views |
---|---|---|---|---|---|
1149 | Database | [sql] 간단한 SQL 문법 정리 | hooni | 2003.04.23 | 12617 |
1148 | Develop |
[c] 그래픽스 자료(OpenGL 라이브러리) 샘플 소스
![]() |
hooni | 2003.04.23 | 10209 |
1147 | Develop |
[opengl] 컴퓨터 그래픽스 강의 자료(수업자료)
![]() |
hooni | 2003.04.23 | 20510 |
1146 | Develop | [c++] p.47 연습문제 3번 | hooni | 2003.04.23 | 10140 |
1145 | Develop | [c++] p.58 연습문제 2번 | hooni | 2003.04.23 | 16348 |
1144 | Develop | [c++] p.118 확인학습 5번 | hooni | 2003.04.23 | 10761 |
1143 | Develop |
[c] 프로그래밍 ppt, 스킬업 (비트 수업자료)
![]() |
hooni | 2003.04.23 | 8211 |
1142 | System/OS | [linux] 콘솔/Xwindow 에서 PC스피커 소리 없애기 | hooni | 2003.04.23 | 16406 |
1141 | Database | [mysql] 쓰레드가 계속 쌓이기 시작하고 사라지지 않을때.. | hooni | 2003.04.23 | 12840 |
1140 | System/OS | [linux] 쉘 환경변수 PS1(프롬프트) | hooni | 2003.04.23 | 13539 |
1139 | System/OS | [linux] APM(apache, php, mysql) + gd 설치순서.. | hooni | 2003.04.23 | 18920 |
1138 | System/OS | [linux] 메일서버 세팅정보(sendmail) | hooni | 2003.04.23 | 17466 |