开发者

.xib not loading right (iPhone)

开发者 https://www.devze.com 2022-12-10 09:21 出处:网络
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:

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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消