【发布时间】:2011-07-28 18:04:13
【问题描述】:
我的项目页数上有一个通用图像,因此我将该图像放在窗口文件中。 由于某些页面不需要显示该图像,因此我将该图像隐藏在相应的页面上。
现在问题出现了,当我从非图像页面弹出到包含图像的页面时,该图像在加载整个页面之前显示。
我希望仅在加载整个页面时显示该图像。
任何帮助表示赞赏....
我的 firstViewController 的代码:
ProfileViewController *ProfilePage = [[ProfileViewController alloc] initWithNibName:@"ProfileViewController" bundle:nil];
ProfilePage.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
UINavigationController *navigationControllerNew = [[UINavigationController alloc] initWithRootViewController:ProfilePage];
//Present navigationController as Model viw controller
[self.navigationController presentModalViewController:navigationControllerNew animated:YES];
//release it After presenting to it
[navigationControllerNew release];
[ProfilePage release];
在 ProfileViewController 页面上,我使用以下代码隐藏图像:
[super viewWillAppear:animated];
IQ_TestAppDelegate *appDelegate = (IQ_TestAppDelegate *)[[UIApplication sharedApplication] delegate];
[appDelegate removeImageViewLogo];
这就是我如何称呼我的页面......
编辑:我已经使用了 NSTimer,因此该图像被隐藏了几毫秒,但正如我所说,我将该图像放在窗口文件中,它显示在页面加载的开头,不知道该怎么做... .
请帮忙。
【问题讨论】:
-
你是通过xml解析来填充你的视图吗?
-
不,我只是弹出我的页面,因为我将页面推送到非图像页面。
标签: iphone objective-c cocoa-touch ios4 uiimage