URLWithString: returns nil

后端 未结 8 1920
遥遥无期
遥遥无期 2020-12-02 13:12

it may be very easy, but I don\'t seems to find out why is URLWithString: returning nil here.

//localisationName is a arbitrary string here
NSSt         


        
8条回答
  •  旧巷少年郎
    2020-12-02 13:29

    Use This Function if you deal with file saved on file manager.

    NSURL *_url = [NSURL fileURLWithPath:path];
    

提交回复
热议问题