执行从Default.png
到初始应用程序视图的逐渐(0.5秒)淡出的最简单/最快/最有效的方式是什么?从iPhone默认位图淡入主应用程序
我最初的尝试,它不工作这么好..它是星期六晚上,让我们看看我们是否能够比使用setAnimationDelay:
代替setAnimationDuration:
做的更好:)
UIImageView* whiteoutView = [[UIImageView alloc] initWithFrame:self.view.frame]; // dealloc this later ??
whiteoutView.image = [UIImage imageNamed:@"Default.png"];
whiteoutView.alpha = 1.0;
[self.view.frame addSubview:whiteoutView];
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDelay:0.5];
whiteoutView.alpha = 0;
[UIView commitAnimations];
作品,除了在我的情况下,我有一个UITabBarController,必须做'[self tabBarController] .view'而不是'self.view'。作品! – sehugg 2010-01-24 05:46:19