启动界面的制作

iPhone开发实现splash画面非常简单,做一个全屏的欢迎页的图片,把它命名为Default.png,然后放在Xcode工程的Resource里面。
在XXXAppDelegate.m程序中,插入如下代码:
(BOOL)application:(UIApplication*)application
didFinishLaunchingWithOp
ti*****:(NSDictionary *)launchOpti***** {
//–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;
}

这样splash页面就停留5秒后,消失了

posted @ 2013-02-22 19:02  追风.扬  阅读(200)  评论(0编辑  收藏  举报