search

Home  >  Q&A  >  body text

objective-c - UIImage初始化一张图片有几种方法?各自的优缺点。

关于图片的初始化方法有几种呢?

世界只因有你世界只因有你2762 days ago563

reply all(1)I'll reply

  • 我想大声告诉你

    我想大声告诉你2017-04-28 09:07:10

    First of all, this problem is only limited to the initialization methods provided in the SDK provided by Apple, such as getting images locally based on the image name, or getting the image based on NSdata, or getting it based on the URL, or some class methods to directly modify the size. ! The pros and cons all depend on personal needs! Generally, everyone will optimize according to their own project needs, or provide extended initialization methods for UIImage, such as SDWebImage

    reply
    0
  • Cancelreply