UIGraphicsBeginImageContextWithOptions(view.bounds.size, NO, 0.0);
[view.layer renderInContext:UIGraphicsGetCurrentContext()];
只需要将 截屏的 view 宽高设置为 NSInteger
如果宽高是小数,就会出现白边问题
UIGraphicsBeginImageContextWithOptions(view.bounds.size, NO, 0.0);
[view.layer renderInContext:UIGraphicsGetCurrentContext()];
只需要将 截屏的 view 宽高设置为 NSInteger
如果宽高是小数,就会出现白边问题
本文标题:ios 截屏出现白线问题
本文链接:https://www.haomeiwen.com/subject/ewrvcxtx.html
网友评论