为iPhone应用添加徽标 [英] Adding logo for iPhone app

查看:131
本文介绍了为iPhone应用添加徽标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想添加徽标视图作为iPhone应用程序午餐。我编码如下

I want to add a logo view as iPhone application lunch. I code as follows

- (void)applicationDidFinishLaunching:(UIApplication *)application
{
    UIImage image = [[UIImage alloc] imageWithContentsOfFile:@"1.jpg"];
        UIImageView view = [[UIImageView alloc] initWithImage:image];
        [window addSubViews:view];

        [NSThread sleepForIntervalTime:10];
        [view removeFromSubview];
    [window addSubview: navigationController.view];
    [window makeKeyAndVisible];
}

但是模拟器无法显示我想要的。只显示navigationController的视图。
我认为原因是iPhone渲染applicationDidFinishLaunching之后的第一个视图
还有其他解决方案吗?

But simulator can't display as I want.just display navigationController's view. I think the reason is iPhone render the first view after "applicationDidFinishLaunching" Are there other solutions about that?

推荐答案

只需将您想要成为LOGO的图像添加到项目中,名称为: Default.png

Just add the image you want to be the LOGO to your project with the name: Default.png

它将自动变为您的应用程序的启动屏幕。

It will automatically become the startup screen for your application.

您的方法无效。 applicationDidFinishLaunching 委托在完成所有加载后运行。此外,将其延迟10秒将不准确,因为应用程序在某些设备上的加载速度可能比其他设备更快。

Your approach won't work. applicationDidFinishLaunching delegate runs after all the loading was done. Besides, delaying it for 10 seconds won't be accurate since application might load faster on some devices than others.

这篇关于为iPhone应用添加徽标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆