Load a Saved Image in iOS

前端 未结 2 1407
伪装坚强ぢ
伪装坚强ぢ 2021-01-15 02:52

What I am doing is to save an image loaded from any source,(camera / library) and saving it to filesystem in iOS. What I m stuck is at how I can use that save image.. I m us

相关标签:
2条回答
  • 2021-01-15 03:35

    Use this method:

    let testImage = UIImage(contentsOfFile: filePath)

    imageNamed looks for an image with the specified name in the application’s main bundle.

    0 讨论(0)
  • 2021-01-15 03:36

    In Swift:

    let testImage = UIImage(contentsOfFile: filePath)
    
    0 讨论(0)
提交回复
热议问题