截屏

作者: 叶麦清香 | 来源:发表于2017-11-05 21:14 被阅读6次
    UIGraphicsBeginImageContextWithOptions(view.bounds.size, YES, 0);
        [view drawViewHierarchyInRect:view.bounds afterScreenUpdates:YES];
        UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
        UIGraphicsEndImageContext();
       
        return image;

    相关文章

      网友评论

          本文标题:截屏

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