Why does a PNG image sometimes get blurry depending on its position in a view

前端 未结 3 1180
渐次进展
渐次进展 2021-02-09 12:39

I have noticed that when placing PNG images into a view using IB and/or animating those images to various positions around a view, the image can sometimes get a slight blur.

3条回答
  •  北荒
    北荒 (楼主)
    2021-02-09 13:12

    IB has a bug where sometimes (not often) just moving elements around will render them fuzzy - you see it most often with UILabels and UIImageViews (although that's probably just what is most apparent). I'm sure it has to do with the points mentioned above in some way, but the fix is often to set the location (x,y) coordinates for the element to 0,0, and then back to the original values. This usually resolves the issue (again, this is in IB).

提交回复
热议问题