码迷,mamicode.com
首页 > 移动开发 > 详细

APP启动加入广告页

时间:2016-08-15 22:22:19      阅读:528      评论:0      收藏:0      [点我收藏+]

标签:

- (void)showLaunchView {
    self.window.rootViewController.view.alpha = 0;
    UIImageView *launchImageView = [[UIImageView alloc] initWithFrame:self.window.frame];
    [launchImageView sd_setImageWithURL:[NSURL URLWithString:@"http://desk.fd.zol-img.com.cn/t_s960x600c5/g5/M00/00/0A/ChMkJlecZd-IBWxcAAYtXMKnTOEAAT_3wDlLEoABi10024.jpg"]]
    ;
    launchImageView.contentMode = UIViewContentModeScaleAspectFill;
    [self.window addSubview:launchImageView];
    
    [self bk_performBlock:^(id obj) {
        [launchImageView removeFromSuperview];

//      [BDBaseFunc windowFadeAnimation];
        self.window.rootViewController.view.alpha = 1;
    } afterDelay:3];
}

1.bk_performBlock  ----blocksKit;

2.showLaunchView在application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions调用;

3. [BDBaseFunc windowFadeAnimation];动画--BDKit;

APP启动加入广告页

标签:

原文地址:http://www.cnblogs.com/wangpengshaui123/p/5774382.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!