Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS 9.0版本无法获取launchImageName,直接返回失败? #26

Open
Mr-ZhangPengWei opened this issue Dec 25, 2023 · 3 comments
Open

Comments

@Mr-ZhangPengWei
Copy link

项目集成LLDynamicLaunchScreen SDK后,然后使用[LLDynamicLaunchScreen replaceLaunchImage:]方法,会走到LLDynamicLaunchScreen文件中的219行:
return [self ll_operateOnTheLaunchImageFolder:^NSError * _Nonnull(NSString * _Nonnull path) {
NSString *launchImageName = [self ll_getLaunchImageNameWithType:type atPath:path];
if (launchImageName == nil) {
return errorWithDescription(@"无法获取系统启动图名称,请联系作者:[email protected]");
}
然后直接返回,请问该如何解决?项目目前使用的是LaunchImage设置启动页图片。希望得到您的回复,不胜感激!谢谢!

@internetWei
Copy link
Owner

您好,项目不支持在 LaunchImage 项目中使用,您必须使用 LaunchScreen 才行。因为使用 LaunchImage 配置的图片是直接打包在 .app 中的,框架无法读取也无法修改;而 LaunchScreen 的图片是启动时系统自动生成的,保存在沙盒下,所以才能实现动态修改启动图。

@internetWei
Copy link
Owner

跟 iOS 9 版本应该没有问题,主要问题在于你要使用 LaunchScreen 而非 LaunchImage。

@Mr-ZhangPengWei
Copy link
Author

Mr-ZhangPengWei commented Dec 25, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants