Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

How do you access Asset Catalog images from a UIImageView in Storyboard?

$
0
0

Working in VS2017 an iOS Xamarin.Forms app, so hopefully this question is in the right spot.

I created an Asset Catalog called LaunchImages that contains the PNGs required for the various iOS launch screen sizes.

In my LaunchScreen.storyboard I have created a UIImageView, but cannot set the Image property of that view to access/display the Asset Catalog.

Things I have tried:
1. Closing/reopening storyboard
2. Updating VS2017 (15.2; 26430.15)
3. Running VS2017 as Administrator
4. Making sure xcassets folder is not read only (per this: https://stackoverflow.com/questions/40644263/asset-catalog-doesnt-open-in-visual-studio)

I'm able to set the Image property to one of the existing resources in my project, but not to the asset catalog.

Do I also need to include each PNG image as a separate resource?

I'm following the guide here: https://developer.xamarin.com/guides/ios/application_fundamentals/working_with_images/displaying-an-image/ - getting stuck at "Displaying an Image in a Storyboards" Step 5.

Other possibly related threads:
https://forums.xamarin.com/discussion/33590/accessing-images-from-an-asset-catalog
https://forums.xamarin.com/discussion/96938/how-to-set-image-property-for-uiimageview-in-storyboard-editor


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>