美文网首页
ios 截屏出现白线问题

ios 截屏出现白线问题

作者: FSDemo | 来源:发表于2017-06-29 19:03 被阅读0次
    UIGraphicsBeginImageContextWithOptions(view.bounds.size, NO, 0.0);
    
    [view.layer renderInContext:UIGraphicsGetCurrentContext()];
    

    只需要将 截屏的 view 宽高设置为 NSInteger
    如果宽高是小数,就会出现白边问题

    相关文章

      网友评论

          本文标题:ios 截屏出现白线问题

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