alert1 objective c alert 구현 alert 구현 - (IBAction)alert:(id)sender { //팝업구현을 하는 클래스 UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"알림" message:@"환영합니다." preferredStyle:UIAlertControllerStyleAlert]; //팝업 버튼 구현하는 클래스 UIAlertAction *closeAction = [UIAlertAction actionWithTitle:@"닫기" style:UIAlertActionStyleCancel handler:nil]; //팝업 클래스에 버튼을 넣는 메소드 호출 [alert addAction:closeAction]; //나타나게 [self present.. 2018. 7. 28. 이전 1 다음