开发者

how to change the time of the image that appear after clicking app logo?

开发者 https://www.devze.com 2023-02-17 14:34 出处:网络
Whenever we click on the Iphone application... An Image appears that stays for a while... and after that it disappeared...

Whenever we click on the Iphone application...

An Image appears that stays for a while...

and after that it disappeared...

and the real window..i mean our programmed s开发者_Go百科creen appears..

now I want that Image to stay for a while..

How to do this??


The image you're talking about is the splash screen, it's displayed until the OS loads your app's resources and launches it, the default name for it's image file in the bundle is Default.png. If you want it to be displayed for abit longer, you'll need to create an image view with the image, put it on the screen, and remove it after a while, probably in the applicationDidFinishLaunching method. something like

UIImageView *imageViewSplash = [[[UIImageView alloc] initWithFrame:window.frame] autorelease]; 
imageViewSplash.image = [UIImage imageNamed:@"Default.png"];
[self.viewController.view addSubview:imageViewSplash];
[imageViewSplash performSelector:@selector(removeFromSuperview) withObject:nil afterDelay:2]; 
// change the '2' to some constants that represents for how many extra seconds you want the splash screen to be displayed
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号