KCLaunchImage
Fake ZhiHu Daily LaunchImage Transition
Install / Use
/learn @kavichen/KCLaunchImageREADME
KCLaunchImage
Demo
Description
A view controller which displays the launch image like Zhi Hu Daily.
Installation
- Insert
pod 'KCLaunchImage'into yourPodfile. - Type command
pod installin your terminal. - Done.
Add to your project
-
Add
KCLaunchImageViewController.handKCLaunchImageViewController.minto your project(if you install it from pod, just skip this step). -
Create a new folder named
FakeLaunchImageunderImages.xcassets. -
Create 4 kind of image sets:
FakeLaunchImage-320w-480h@2x(iPhone4)FakeLaunchImage-320w-568h@2x(iPhone5)FakeLaunchImage-375w-667h@2x(iPhone6)FakeLaunchImage-414w-736h@3x(iPhone6P)
-
Put one specific image for each image set

-
Add your own launch image into
LaunchImage. -
Add your own display image named
displayImage(same asFakeLaunchImage). -
In your
AppDelegate.mfile, add those code.
\#import "KCLaunchImageViewController.h"
\#import "UIImage+ForiPhone.h"
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
UIImageView *splashScreen = [[UIImageView alloc] initWithImage:[UIImage autoSelectImageWithImageName:@"FakeLaunchImage"]];
[self.window addSubview:splashScreen];
self.window.rootViewController =
[KCLaunchImageViewController addTransitionToViewController:[[KCViewController alloc] init]
modalTransitionStyle:UIModalTransitionStyleCrossDissolve
withImageName:@"DisplayImage"
taskBlock:^(void){
[splashScreen removeFromSuperview];
}];
return YES;
}
Resource File
The files should be open in Sketch
Attention
If your images shored in images.xcassets , please set Deployment Target >= 7.0.
Author
kavichen, chen1qi2wei3@gmail.com
License
KCLaunchImage is available under the MIT license. See the LICENSE file for more info.
Related Skills
node-connect
343.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
92.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.3kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
