I have a library project that contains a couple of UIViewControllers
that are shared across vario开发者_StackOverflowus applications that make use of the libray.
One of the view controllers needs some images. They are located in my myLibrary/Controllers/TestController/Images
.
Which build action do I have to specify for the images and how can I access them using UIImage.From*()
methods?
You want to set a build action of "Content" on each of the images.
Then for referencing the images from code use the following (my images are in the images folder in my project):
UIImage.FromFile("images/mycoolimage.png");
精彩评论