Develop
2013.10.14 14:38
[ios] UIAlertView 초간단 샘플 ㅎㅎ
조회 수 55970 댓글 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){ } } }
번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|---|
1141 | Develop | [ios] URL 랜딩 속도(OpenURL 10초 정지되는) 이슈 | hooni | 2015.02.09 | 1764 |
1140 | Develop |
[ios] iOS 8 개발자가 우선 알아야 할 3가지
![]() |
hooni | 2014.10.02 | 1793 |
1139 | Develop |
[ios] Touch ID 적용 샘플 코드 (예제)
![]() |
hooni | 2015.02.23 | 1840 |
1138 | Develop | [ios] WWDC 2015 샘플 소스 코드 통합파일 | hooni | 2015.07.20 | 1840 |
1137 | Develop | [ios] 문자열로 함수 실행하기 (eval 함수처럼) | hooni | 2015.02.10 | 1841 |
1136 | Develop | [ios] NSNotificationCenter 초간단 사용 예~ ㅋㄷ | hooni | 2015.06.26 | 1860 |
1135 | Develop |
[ios] 새로 만들고 있는 DateMemo
![]() |
hooni | 2016.07.12 | 1900 |
1134 | Develop | [ios] UIWebView에서 로컬에 있는 html 파일 불러오기 | hooni | 2015.02.10 | 2006 |
1133 | Develop |
[ios] SBCampanion App 초안
![]() |
hooni | 2015.09.16 | 2014 |
1132 | System/OS | 개인적으로 쓰고 있는 bash_profile | hooni | 2015.01.16 | 2018 |
1131 | Develop | [ios] NSData to NSString (NSString to NSData) | hooni | 2015.07.21 | 2028 |
1130 | Develop |
[c] 이진 탐색 두 가지 코드 (재귀/반복)
![]() |
hooni | 2015.06.26 | 2031 |