tags:

views:

156

answers:

1

For some reason when I load a new view (from a .xib) it'll load the class files, BUT NOT the .xib!!

Here's my code:

login *lo =[[login alloc] initWithNibName:@"login" bundle:nil];
self.log = lo;
UIViewController *loginview = log;
[UIView setAnimationTransition:UIViewAnimationCurveEaseIn forView:self.view cache:YES];
[loginview viewWillAppear:YES];
[self.view removeFromSuperview];
[self viewWillDisappear:YES];
[self.view insertSubview:loginview.view atIndex:0];
[self viewDidDisappear:YES];
[loginview viewDidAppear:YES];
[UIView commitAnimations];
[log release];
A: 

Perhaps this question discusses what you're experiencing? Sorry if I misunderstood your question, it's kind of low on the details.

Jorge Israel Peña
kinda, however after checking everything it seems that none of that stuff is the problem
Matt S.
Ok, after some debugging it turns out that when I run that code it doesn't add the view (login), instead it loads the window (in the delegate)
Matt S.