gpt4 book ai didi

objective-c - 是否可以根据设置更改启动图像?

转载 作者:塔克拉玛干 更新时间:2023-11-02 21:57:23 24 4
gpt4 key购买 nike

在我的应用程序项目的资源中,我有 Default.png 这是我的应用程序启动图像。

感谢设置包,用户可以更改启动 View ,所以我的问题是找到一种方法在用户更改设置时获取另一个启动图像。

有办法吗?

最佳答案

不,您不能更改应用程序包中的文件。

但是有可能找到另一个简单的解决方案 - 因为这只是在启动您的应用程序之后显示一个带有选定默认屏幕的 View ,然后在例如5 秒显示您的主视图:

+ (NSTimer *)scheduledTimerWithTimeInterval:(NSTimeInterval)seconds target:(id)target selector:(SEL)aSelector userInfo:(id)userInfo repeats:(BOOL)repeats

[NSTimer scheduledTimerWithTimeInterval:5.0 target:self selector:@selector(showMainView) userInfo:nil repeats:NO];

关于objective-c - 是否可以根据设置更改启动图像?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5222846/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com