Xamarin.iOS Using Asset Catalogs Adding image assets to asset catalog

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Example

This is how the Asset Catalog in Xamarin Studio looks like,

Asset Catalog options

As shown in above picture there are 5 types of assets you can create within the catalog.

I will cover only image set, because its the simplest one.

When you create a new image set. You will get options like this New Image Set Options

To add images to the catalog you can simply click on the dashed squares and select the image you want to set for particular option.

In XCode you have options of 1x, 2x and 3x to cover the most recent iOS device screen sizes. But Xamarin has one extra option Vector using which you can upload PDF formatted Vector image which would be automatically scaled depending on the device your application is running on.

For iPhone images Xamarin retains the iOS7 special image size R4 which is used for 4-Inch screen sized iPhone (5, 5S and SE).

Please refer Xamarin Documentation on how to add images to iOS application for more information.



Got any Xamarin.iOS Question?