Skip to content

JayneHong/AppLaunchView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

一个可在app启动时插入广告、视频、图片的类

使用方法:#import "AppLaunchView.h"

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
    
    /*播放Bundle资源
     * launchVideoName 视频资源
     */
    AppLaunchView *launchView1 = [[AppLaunchView alloc] initWithWindow:self.window
                                                       launchVideoName:@"intro_video.mp4"];
    //网络视频资源
    launchView1.launchUrl = @"https://www.apple.com/media/us/airpods/2016/94916564_4bfa_4362_8b6c_b5c8fc822e3d/films/feature/airpods-feature-tft-cc-us-20160907_960x400.mp4";
    
    [launchView1 show];
    
    
    
    /*播放Bundle资源
     * launchType 展示类型
     */
    AppLaunchView *launchView2 = [[AppLaunchView alloc] initWithWindow:self.window
                                                            launchType:AppLaunchAnimCool];
    launchView2.launchImageName = @"139-1606030Z537.jpeg";
    launchView2.launchTime = 5;   //不填 默认为4
    [launchView2 show];
    
    return YES;
}      

演示截图如下:
![image](https://github.com/JayneHong/AppLaunchView/blob/master/1.gif)

![image](https://github.com/JayneHong/AppLaunchView/blob/master/2.gif)

![image](https://github.com/JayneHong/AppLaunchView/blob/master/3.gif)

如果使用起来对你有帮助,请star一下吧。

About

一个可在app启动时插入广告、视频、图片的类

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published