OC 任意区域截屏

作者: CYC666 | 来源:发表于2018-10-26 15:46 被阅读0次

        UIGraphicsBeginImageContext(self.view.bounds.size);

        [self.view.layer renderInContext:UIGraphicsGetCurrentContext()];

        UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();

        UIGraphicsEndImageContext();

    相关文章

      网友评论

        本文标题:OC 任意区域截屏

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