Images not showing on iOS, only Android

Aston Turner 96 Reputation points
2021-04-23T06:28:15.697+00:00

Hi, I am developing a cross platform app for iOS and Android, I followed the Microsoft documentation for using local images.

  • I added the images to /drawable for Android - this worked fine.
  • I added the images also to Assets.xcassets - but I can't get them to show, I have tried different naming, clean/rebuild etc.

90579-image.png

The button where I am trying to use the image, I also have other images in <image> tags that won't load either.

90604-image.png

Developer technologies | .NET | Xamarin
{count} votes

Answer accepted by question author
  1. Aston Turner 96 Reputation points
    2021-04-23T07:16:06.837+00:00

    My bad, I found a solution.

    The images were not in the /Resources folder for iOS. Also the folder contents were not 'included' in the solution. I had to include them.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.