代码拉取完成,页面将自动刷新
自动修复iPhone启动图显示异常,1行代码修改启动图 建议使用OC版本,Swift版本后续将不再升级维护。
动态修改启动图 | 修复启动图异常 |
---|---|
由于Swift语言的限制,有些初始化操作需要您手动执行:
application(_ , didFinishLaunchingWithOptions :)
方法返回前执行LLaunchScreen.finishLaunching()
LLaunchScreen.backupSystemLaunchImage()
// 将所有启动图恢复为默认启动图(Restore all launch screen to the initial state)
LLaunchScreen.restoreAsBefore()
// 替换指定类型启动图(Replace the specified type of launch Image)
LLaunchScreen.replaceLaunchImage(replaceImage: replaceImage, type: .verticalLight, quality: 0.8, validation: nil)
// 自定义暗黑系启动图的校验规则,请写在finishLaunching()方法前(Customize the verification rules of the dark style launch screen, Please write before finishLaunching() method)
LLaunchScreen.hasDarkImageBlock = {
}
// 获取指定模式下的本地启动图(Get the local launch screen diagram in the specified mode)
LLaunchScreen.launchImage(from: .verticalLight)
LLaunchScreen
文件夹内的所有内容LLaunchScreen
文件夹添加(拖放)到你的工程该项目最低支持iOS9.0和Xcode10.0,如果想在更低系统上使用可以联系作者
如果你有更好的改进,please pull reqeust me
如果你有任何更好的意见,请创建一个Issue
可以通过此邮箱联系作者internetwei@foxmail.com
LLaunchScreen 使用 MIT 许可证,详情见 LICENSE 文件
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。