Convert an NSURL to an NSString

前端 未结 7 905
伪装坚强ぢ
伪装坚强ぢ 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:56

    In Swift :- var str_url = yourUrl.absoluteString

    It will result a url in string.

提交回复
热议问题