Skip to content

yvanwang1992/YFSplashScreen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YFSplashScreen

YFSplashScreen is a Dynamic SplashScreen just like the APP : "抽屉新热榜"

if you set image using url in the app, the next time when the app starting, the image will be shown with animation.

博客园记录: 【IOS】模仿"抽屉新热榜"动态启动页

##Effection:

 ![splashscreen](https://github.com/yvanwang1992/YFSplashScreen/blob/master/screenshots/splashscreen.gif)

How To Use It?

####1.#import "YFSplashScreenView.h"

####2.Initialization:

YFSplashScreenView *splashScreenView = [[YFSplashScreenView alloc] initWithFrame:self.window.bounds

defaultImage:[UIImage imageNamed:@"defaultStartScreen"]];

if you don't want defaultImage,just set it nil.

####3.Methods:

//Set animatable network image. -(void)setImage:(NSString *)imageUrl;

//Clear all the images saved. -(void)clearImageSavedFolder;

####4.block:

//When the Animation is Started.

splashScreenView.animationStartBlock = ^void(){

NSLog(@"Animation Start......");

};

//When the Animation is Completed.

splashScreenView.animationCompletedBlock = ^void(){

NSLog(@"Animation Completed......");

};

####5.notice:

1.All the portrait LaunchScreen Images can be seen in path ~./Assets.xcassets/LaunchImage.launchimage/

2.if you wanna make your own LaunchScreen Images, Please make sure that The Location of Top Views is the same as the Current LaunchScreen's.

About

splash screen just like the app : drawer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published