0
我想將啓動畫面添加到我的應用程序。我寫下面code.It是在iPhone模擬器可見,但它不是在device.Any建議SplashScreen在iPhone設備中不可見
UIImageview *splashView = [[UIImageView alloc] initWithFrame:CGRectMake(0,0, 320, 460)];
splashView.image = [UIImage imageNamed:@"default1.png"];
[self.window addSubview:splashView];
[self.window bringSubviewToFront:splashView];
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:5.0];
[UIView setAnimationTransition:UIViewAnimationTransitionNone forView:self.window cache:YES];
[UIView setAnimationDelegate:self];
[UIView setAnimationDidStopSelector:@selector(finishAnimation)];
splashView.alpha = 0.0;
[UIView commitAnimations];
可見......
-(void)finishAnimation
{
[splashView removeFromSuperview];
self.window.rootViewController =self.navcontroller;
}
它是可見的直接登錄頁面
謝謝你,我明白了。 – fathik