是的,你可以做到——我的应用程序正是这样做的。我所做的是在“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];
然后添加tabbarcontroller,即带有一个rootViewController的导航控制器。您可以将 viewController 和 modalController backgroundColor 设置为 clearColor - 您将不得不玩弄这个。