.xib无法正确加载(iPhone)

时间:2009-10-31 22:24:22

标签: iphone xib

出于某种原因,当我加载一个新视图(来自.xib)时,它将加载类文件,但不是.xib !!

这是我的代码:

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];

1 个答案:

答案 0 :(得分:0)

或许this question讨论您遇到的问题?对不起,如果我误解了你的问题,那么细节就不多了。