Hi,
I am a newbie to the iPhone SDK, but have been teaching myself syntax through youtube tutorials.
Anyway, I am having trouble with a mutiview Window based application, in the simplest loading a view into MainWindow. When I Build and Run, I get no syntax errors, but it loads iPhone sim, and then backs out of the app completely.
I know that there is a simple fix to this that I am not seeing, and I hoped that with the years of experience on this forum that SOMEONE could help a newbie with a simple fix!
My viewDidLoad is coded as follows:
any help?
I am a newbie to the iPhone SDK, but have been teaching myself syntax through youtube tutorials.
Anyway, I am having trouble with a mutiview Window based application, in the simplest loading a view into MainWindow. When I Build and Run, I get no syntax errors, but it loads iPhone sim, and then backs out of the app completely.
I know that there is a simple fix to this that I am not seeing, and I hoped that with the years of experience on this forum that SOMEONE could help a newbie with a simple fix!
My viewDidLoad is coded as follows:
Code:
-(void) viewDidLoad{
homeClass *home = [[homeClass alloc]initWithNibName:@"home" bundle:nil];
self.HomeClass = home;
[self.view insertSubview:home.view atIndex:0];
[home release];
[super viewDidLoad];
}
any help?