Should I use UIImage or CGImage in a Swift iOS App?

前端 未结 3 1014
感动是毒
感动是毒 2020-12-14 23:27

All the code I can find revolves around loading images directly into visual controls.

However, I have my own cache system (converting a project from another language

3条回答
  •  [愿得一人]
    2020-12-15 00:02

    Per the documentation at: https://developer.apple.com/documentation/uikit/uiimage

    let uiImage = uiImageView.image
    let cgImage = uiImage.cgImage
    

提交回复
热议问题