2010-07-12 8 views

답변

4

UIAlertView 클래스가 필요합니다. 예 :

UIAlertView *myAlert = [[UIAlertView alloc] initWithTitle:@"Something happened" 
    message:@"And here is some more information about what it is." 
      delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil]; 
[myAlert show]; 
[myAlert release]; 
+0

Genius. 감사!!!!! – user377419

+3

모든 Cocoa Touch UI 요소에 익숙하지 않다면 Apple Sample 프로젝트 인 "UICatalog"를 가져 오는 것이 좋습니다. http://developer.apple.com/iphone/library/samplecode/UICatalog/Introduction/Intro.html –

0

인터페이스 작성기를 사용하여 NS Window을 만듭니다. appdelegate에서 창을 엽니 다.

+0

하지만 이렇게 보이길 원합니다. http://artoftheiphone.com/wp-content/uploads/FTP/GPush5.jpg 할 수 있습니까? – user377419

+0

mcandre : 질문과 태그를 읽으십시오. Cocoa Touch는 Mac이 아닌 iOS의 Cocoa 프레임 워크를 가리 킵니다. 어떤 경우에도 NSWindow는 실제로 적절한 클래스가 아닙니다. –

0

또 다른 옵션은 CFUserNotification입니다. UIAlertView의 장점은 UIKit에 연결하지 않아도된다는 것입니다.