【发布时间】:2016-06-03 11:03:58
【问题描述】:
请建议我如何在 iphone 中创建启动画面一段时间。我试图通过创建新资源启动图像来更新 info.plist 但不起作用。 这个我试过了
#import "AppDelegate.h"
#import "SignIn.h"
#import "Splash.h"
@interface AppDelegate ()
@end
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
self.window=[[UIWindow alloc]initWithFrame:[[UIScreen mainScreen]bounds]];
Splash *splash=[[Splash alloc]initWithNibName:@"Splash" bundle:nil];
self.window.rootViewController=splash;
[self.window makeKeyAndVisible];
sleep(3);
SignIn *signIn=[[SignIn alloc]initWithNibName:@"SignIn" bundle:nil];
self.window.rootViewController=signIn;
return YES;
}
【问题讨论】:
-
到目前为止你做了什么?
-
在 info.plist 中添加了图像但不起作用
-
在你问这样的问题之前先谷歌一下。 Displaying splash screen for longer than default seconds 的可能重复项
标签: ios objective-c iphone splash-screen