截取UIView的高清圖片

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

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

    UIImage * img = UIGraphicsGetImageFromCurrentImageContext();io

    UIGraphicsEndImageContext();im

相關文章
相關標籤/搜索