Convert an NSURL to an NSString

前端 未结 7 917
伪装坚强ぢ
伪装坚强ぢ 2020-12-02 04:30

I have an app where the user can choose an image either from the built-in app images or from the iphone photo library. I use an object Occasion that has an NSString

7条回答
  •  被撕碎了的回忆
    2020-12-02 04:57

    I just fought with this very thing and this update didn't work.

    This eventually did in Swift:

    let myUrlStr : String = myUrl!.relativePath!
    

提交回复
热议问题