1 Star 1 Fork 0

internetwei / LLDynamicLaunchScreen

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

LLDynamicLaunchScreen

LLDynamicLaunchScreen CI   License MIT   Carthage   CocoaPods   Platform   Support

Solve the problem of abnormal display of iOS startup map, and support dynamic replacement of startup map.
Chinese mainland users can accessThis link
中文介绍

Features

  • After integration, automatically repair the startup map display abnormalities and other issues
  • 1 line of code to modify any startup diagram
  • Support to get the current startup graph object
  • Compatible with systems below iOS13

Demo

Dynamic modification Fix exception
demo.gif repair.gif

Usage

// 将所有启动图恢复为默认启动图(Restore all launch screen to the initial state)
[LLDynamicLaunchScreen restoreAsBefore];

// 替换指定类型启动图(Replace the specified type of launch Image)
[LLDynamicLaunchScreen replaceLaunchImage:replaceImage type:LLLaunchImageTypeVerticalLight compressionQuality:0.8 customValidation:nil];

// 自定义暗黑系启动图的校验规则(Customize the verification rules of the dark style launch screen)
LLDynamicLaunchScreen.hasDarkImageBlock = ^BOOL(UIImage * _Nonnull image) {
        
};

// 获取指定模式下的本地启动图(Get the local launch screen diagram in the specified mode)
[LLDynamicLaunchScreen launchImageFromType:LLLaunchImageTypeVerticalLight];

Installation

CocoaPods

  1. Add pod 'LLDynamicLaunchScreen' to your Podfile
  2. Run pod install --repo-update
  3. Import <LLDynamicLaunchScreen/LLDynamicLaunchScreen.h>

Carthage

  1. Add github "internetWei/LLDynamicLaunchScreen" to your Cartfile
  2. Run carthage update --platform ios and add the framework to your project
  3. Import <LLDynamicLaunchScreen/LLDynamicLaunchScreen.h>

Manually

  1. Download all the files in the LLDynamicLaunchScreen subdirectory
  2. Add (drag and drop) the LLDynamicLaunchScreen folder to your project
  3. Import "LLDynamicLaunchScreen.h"

Requirements

The project supports iOS 9.0 and Xcode 10.0 at least. If you want to use it on lower systems, please contact the author.

Note

  • The replacement image size is recommended to be consistent with the screen size.
  • After updating the APP, the default startup diagram will be displayed when the APP is opened for the first time. This is caused by system limitations and cannot be resolved temporarily.

Contact

If you have better improvements, please pull reqeust me

If you have any better comments, please create oneIssue

The author can be contacted by this emailinternetwei@foxmail.com

License

LLDynamicLaunchScreen is released under the MIT license. See LICENSE file for details.

Comments ( 0 )

Sign in for post a comment

About

解决iOS启动图异常,动态修改启动图。 spread retract
Cancel

Releases (1)

All

Contributors

All

Activities

load more
can not load any more
1
https://gitee.com/internetWei/lldynamic-launch-screen.git
git@gitee.com:internetWei/lldynamic-launch-screen.git
internetWei
lldynamic-launch-screen
LLDynamicLaunchScreen
master

Search