iPhone开发实现splash画面非常简单。
1.做一个全屏的欢迎页的图片,把它命名为Default.png,然后放在Xcode工程的Resource里面。
2.在XXXAppDelegate.m程序中,插入如下代码:- (BOOL)application:(UIApplication*)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
//–inserta delay of 5 seconds before the splash screendisappears–
[NSThread sleepForTimeInterval:5.0];
//Override point for customization after applicationlaunch.
//Add the view controller’s view to the window anddisplay.
[windowaddSubview:viewController.view];
[windowmakeKeyAndVisible];
return YES;
}