-3

I get this error then doing this? My goal its to fetch an image from the firebase and view it in my tableview.

enter image description here

3
  • 1
    Are you pretty sure about "Xcode 4"?! Did you mean "Xcode 9" or Swift 4? Commented Nov 12, 2017 at 9:07
  • 1
    Never include code as a picture in your question. Include it as text and use code formatting. Commented Nov 12, 2017 at 11:40
  • OK so format a text URL to image ? Commented Nov 12, 2017 at 11:52

1 Answer 1

-1

You should use URL(string: profileImageUrl) instead of NSURL(string: profileImageUrl) because URLSession expecting URL not NSURL.

Sign up to request clarification or add additional context in comments.

2 Comments

Thanks it Worked :) so now i can fetch image from firebase right ?
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 :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.