在ios中的初始屏幕

请build议我如何在iPhone中创build启animation面一段时间。 我试图通过创build一个新的资源更新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; } 

在某个时候自动显示一个视图控制器,在您要呈现的闪屏控制器的viewDidLoad中添加NSTimer

 - (void)viewDidLoad { //NSTimer calling Method B [NSTimer scheduledTimerWithTimeInterval:5.0f target:self selector:@selector(methodB:) userInfo:nil repeats:NO]; } - (void) methodB:(NSTimer *)timer { //Present next view controller. } 

添加你自己的视图控制器与图像视图,这也将帮助你做一些预处理你的应用程序,如检查互联网连接,下载和保存每次在应用程序所需的数据。