I get this error then doing this? My goal its to fetch an image from the firebase and view it in my tableview.
-
1Are you pretty sure about "Xcode 4"?! Did you mean "Xcode 9" or Swift 4?Ahmad F– Ahmad F2017-11-12 09:07:50 +00:00Commented Nov 12, 2017 at 9:07
-
1Never include code as a picture in your question. Include it as text and use code formatting.David Pasztor– David Pasztor2017-11-12 11:40:11 +00:00Commented Nov 12, 2017 at 11:40
-
OK so format a text URL to image ?Nikolai Langsem– Nikolai Langsem2017-11-12 11:52:13 +00:00Commented Nov 12, 2017 at 11:52
Add a comment
|
1 Answer
You should use URL(string: profileImageUrl) instead of NSURL(string: profileImageUrl) because URLSession expecting URL not NSURL.
2 Comments
Nikolai Langsem
Thanks it Worked :) so now i can fetch image from firebase right ?
Surya
Actually you presented a snippet of code, I can't say with that. Keeping URL instead of NSURL can get rid of ambiguous error, that's I can say :)
