개발도구/iOS - 아이폰 개발
[아이폰] 아이폰 alert 메세지표기
Hay's App
2011. 9. 30. 13:27
아이폰어플 alert 함수.
안드로이드 toast 나 dialogalert 와 같은 것이지요
왼쪽과 같이 하기 위한 소스 입니다.
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Sample" message:@"Outline.\nThis is ""Sample"" message! \n\nsaaaaaaaaaaaaaaaaaaaaaaaaaaample!!! " delegate:self cancelButtonTitle:@"OK" otherButtonTitles: nil];
[alert show];
[alert release];
필요에 따라 사용하시면 되지요.
========================= 예제 소스 =======================
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"메세지 타이틀"
message:@"메세지 내용"
delegate:self
cancelButtonTitle:@"Cancel"
otherButtonTitles:nil];
[alert show];
[alert release];
안드로이드 toast 나 dialogalert 와 같은 것이지요
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Sample" message:@"Outline.\nThis is ""Sample"" message! \n\nsaaaaaaaaaaaaaaaaaaaaaaaaaaample!!! " delegate:self cancelButtonTitle:@"OK" otherButtonTitles: nil];
[alert show];
[alert release];
필요에 따라 사용하시면 되지요.
========================= 예제 소스 =======================
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"메세지 타이틀"
message:@"메세지 내용"
delegate:self
cancelButtonTitle:@"Cancel"
otherButtonTitles:nil];
[alert show];
[alert release];