Contents

Views 46170 Comment 0
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print

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){
            
        }
    }
    
}


?

List of Articles
No. Category Subject Author Date Views
1149 Etc IPR 특허 관련 secret hooni 2015.04.28 0
1148 System/OS iptime 공유기 해킹 기술문서 4 file hooni 2015.01.01 2067
1147 Etc ISMS 인증기준 – 정보보호대책 (시스템개발보안) file hooni 2016.12.01 1437
1146 Etc IT감사 기법 시험 file hooni 2017.06.14 1577
1145 Develop JSON, BSON 변환 file hooni 2013.04.23 11859
1144 Develop Laravel 5 Failed opening required bootstrap/../vendor/autoload.php hooni 2018.01.24 1816
1143 System/OS Mac OS X - Apache+PHP+MySQL 환경 서버 hooni 2013.04.25 31702
1142 Develop Mac OS 에 Jenkins 설치하기 (Homebrew) 2 file hooni 2017.03.15 8367
1141 Develop macOS에 node, npm 설치하기 (homebrew) file hooni 2021.11.06 1433
1140 System/OS Mac에서 Node.js 설치하기 file hooni 2018.09.28 4308
1139 System/OS NAT와 DHCP에 대한 간단한 설명 hooni 2013.04.23 18388
1138 Algorithm OCB5 Injection 앗싸뵹! ㅋㅋ file hooni 2014.07.01 879
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 98 Next
/ 98