search

Home  >  Q&A  >  body text

objective-c - UILabel显示汉字模糊问题

fame给小数字就容易模糊,这是为什么呢?

伊谢尔伦伊谢尔伦2769 days ago357

reply all(1)I'll reply

  • 迷茫

    迷茫2017-04-21 10:59:39

    Because the pixels on the display are discrete.
    Therefore, if your frame is given a decimal, the display of each pixel will be incomplete and blurred.
    This problem does not only occur on UILabel, so UIView will also have this problem.
    It is recommended not to use decimals when it comes to frame, bounds, size, path, etc.

    reply
    0
  • Cancelreply