美文网首页
开机启动跳转

开机启动跳转

作者: Super宗Sir | 来源:发表于2018-07-12 17:49 被阅读0次

    防止先出现第一页再跳:
    截屏,将截屏的image放置在window的最前边

    UIGraphicsBeginImageContextWithOptions(view.bounds.size,YES,[UIScreen mainScreen].scale);
    [view.layer renderInContext:UIGraphicsGetCurrentContext()];
    UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();

    UIWindow *window = [MainTabBarController shared].view.window;
    if (window && [MainTabBarController shared].screenShotForLaunchImg) {
    [window insertSubview:[MainTabBarController shared].screenShotForLaunchImg atIndex:window.subviews.count - 1];
    }

    相关文章

      网友评论

          本文标题:开机启动跳转

          本文链接:https://www.haomeiwen.com/subject/qxbrpftx.html