截取UIView的高清图片

    UIGraphicsBeginImageContextWithOptions(self.view.bounds.size, self.view.opaque, 0.0);spa

    [self.view.layerrenderInContext:UIGraphicsGetCurrentContext()];it

    UIImage * img = UIGraphicsGetImageFromCurrentImageContext();io

    UIGraphicsEndImageContext();im

相关文章
相关标签/搜索