LLaunchScreen 0.1.1

LLaunchScreen 0.1.1

Maintained by internetwei.



  • By
  • internetwei

LLDynamicLaunchScreen

LLDynamicLaunchScreen CI   License MIT   Carthage   CocoaPods   Platform   Support

Automatically fix iPhone startup diagram display abnormality, 1 line of code to modify the launch screen

中文介绍

Features

  • Automatically repair the abnormal display of the launch screen map
  • 1 line of code to modify the launch screen diagram
  • 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.
  • You can modify the iPad launch screen diagram, but it is not perfect, and subsequent versions will adapt

Contact

If you have better improvements, please pull reqeust me

If you have any better comments, please create one Issue

The author can be contacted by this email[email protected]

LLDynamicLaunchScreen设计思路

To Do List

  • Improve iPad launch screen repair and replacement

License

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