Leave your greetings here
KrisKo 2011/08/30 20:03 M/D Reply Permalink
정말 감사합니다..완전 이것때문에 몇시간을 고생했는데..참 ㅠㅜ
다시한번 정말 고맙습니다. 수고하세요!! 꾸벅.
KrisKo 2011/08/30 19:29 M/D Reply Permalink
매번 답글 감사합니다..
이번에도 안되면 건너 뛰려구요,,
일단 UsingViewsViewControllerViewController.m
내용입니다 이야기해주신 방법도 해봤지만...안되서 제가 다시 작성해봤어요
새로만들기 생성후
UsingViewsViewControllerViewController.h
UsingViewsViewControllerViewController.xib는 전혀 건들지않고
UsingViewsViewControllerViewController.m 만 아래와 같이 작성후 실행
하였습니다.
실행하니깐 그냥 하얀 화면만 나오네요..
마지막으로 한번만 봐주세요.. ㅠㅜ 감사합니다 ..
#import "UsingViewsViewControllerViewController.h"
@implementation UsingViewsViewControllerViewController
- (void)didReceiveMemoryWarning
{
// Releases the view if it doesn't have a superview.
[super didReceiveMemoryWarning];
// Release any cached data, images, etc that aren't in use.
}
#pragma mark - View lifecycle
/*
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
- (void)viewDidLoad
{
[super viewDidLoad];
}
*/
- (void)viewDidUnload
{UIAlertView *alert = [[UIAlertView alloc]
initWithTitle:@"Hello"
message:@"This is an alert view"
delegate:self
cancelButtonTitle:@"ok"
otherButtonTitles:nil];
[alert show];
[alert release];
[super viewDidUnload];
}
- (void)alertView:(UIAlertView *)alertView
clickedButtonAtIndex:(NSInteger)buttonIndex {
NSLog([NSString stringWithFormat:@"%d", buttonIndex]);
}
// Release any retained subviews of the main view.
// e.g. self.myOutlet = nil;
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
// Return YES for supported orientations
return YES;
}
@end
joshy21 2011/08/30 19:55 M/D Permalink
안녕하세요~
viewDidUnload가 아니라 viewDidLoad 메서드 안에서 경고창 뷰를 띄워야 합니다.
{UIAlertView *alert = [[UIAlertView alloc]
initWithTitle:@"Hello"
message:@"This is an alert view"
delegate:self
cancelButtonTitle:@"ok"
otherButtonTitles:nil];
[alert show];
[alert release];
부분을 viewDidUnload에서 viewDidLoad로 옮겨 보세요~
감사합니다.