Iphone 启动屏幕后立即显示modalVIewController

Iphone 启动屏幕后立即显示modalVIewController,iphone,Iphone,使用iOS5。其目的是在闪屏视图上放置一个按钮,这是无法完成的,因为Default.png是静态图像,所以我要做的是在第一个Viewcontroller出现时立即显示一个modalViewController。这恰好是由TabController托管的ViewController。问题是,有一个小间隙,一旦启动屏幕消失并且显示SplashViewController(具有相同的图像但处于活动状态),用户就可以短暂地看到下面的视图 我正在使用presentModalViewController显示

使用iOS5。其目的是在闪屏视图上放置一个按钮,这是无法完成的,因为Default.png是静态图像,所以我要做的是在第一个Viewcontroller出现时立即显示一个modalViewController。这恰好是由TabController托管的ViewController。问题是,有一个小间隙,一旦启动屏幕消失并且显示SplashViewController(具有相同的图像但处于活动状态),用户就可以短暂地看到下面的视图

我正在使用presentModalViewController显示活动的启动视图。是否有任何方法可以消除此故障,我正在调用基础viewcontroller的ViewWillAspect方法中的presentModalViewController。我想我需要的是以某种方式显示活跃的启动屏幕比这早一点


谢谢

是的,你可以做到-我的应用程序正是这样做的。我所做的是在“didFinishLaunchingWithOptions:”中,我首先在UIImageView中添加了与窗口子视图相同的启动图像:

UIImageView *launchView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"Default.png"]];
UIImageView *normalView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:<shorter version of launch image, allowing space for activity bar]];

[window addSubview:launchView];
if(isMember) {
    [window addSubview:normalView];
    normalView.alpha = 0; 

    [UIView animateWithDuration:0.25 animations:^
        {
            launchView.alpha    = 0;
            normalView.alpha    = 1; 
        }
        completion:^(BOOL finished)
        {
            [launchView removeFromSuperview];
        } ];
}

[window makeKeyAndVisible];
UIImageView*launchView=[[UIImageView alloc]initWithImage:[uiImageName:@“Default.png”];

UIImageView*normalView=[[UIImageView alloc]initWithImage:[UIImageImageName:您是否尝试在基础控制器的init方法中执行此操作?