Project Organization.

8 views
Skip to first unread message

Andrew Theken

unread,
Nov 27, 2011, 10:07:22 AM11/27/11
to MonoTouch
I have a MonoTouch project with about 10 images that I'm using for
backgrounds and UI elements in my app (specified as such in my .xib).
It seems that the runtime will only pick these up if they are in the
root directory of the project. This leads to a fairly messy root
directory.

Is there any way to keep these images in a subdirectory like "Assets"
and then have the application pick them up (perhaps by modifying the
custom resource rules plist)?

Thanks in advance,

--att

Roy Goode

unread,
Nov 27, 2011, 10:13:09 AM11/27/11
to mono...@googlegroups.com, mono...@lists.ximian.com
Hi, 

Yes, you can do that. When you wish to access the images, use the relative path.

e.g. if the images are in the Assets folder:

var image = UIImage.FromFile("Assets/myImage.png");
Reply all
Reply to author
Forward
0 new messages