- Create a new iPhone Solution in MonoDevelop.
- Drag the image you want to use in to the Solution Explorer.
- Click Copy on the dialog box.
- Right click the image in the solution and select "Properties", the Properties panel should show up.
- Change the "Build Action" to "Content".
- Double Click MainWindow.xib in the "Solution Explorer" and Interface builder should open up.
- Click "Tools" > "Library", the library window will pop open.
- Drag and "Image View" (under "Library" > "Cocoa Touch" > "Data Views") to the "Window".
- Click on the Image View, then click "Tools" > "Attribute Inspector".
- Type the name of the image in the "Image" field. The image view will be replaced with a question mark icon
- Close interface builder.
- In MonoDevelop Click "Run" > "Run".
- Wait for the iPhone Simulartor to start and enjoy the results.
2009-11-14
MonoTouch - Image View in Interface Builder
I have been playing with MonoTouch recently in an attempt to make a iPhone app. I was playing quite happily there just one problem. I couldn't work out how to set the image for the "Image View" in Interface Builder I searched the internet for a few hours and still couldn't find a thing. So it was time to start randomly clicking and compiling until it worked.
Here is what I did....
2009-11-08
Free Mac Apps Go get yours now!
Labels:
Free Stuff
Subscribe to:
Posts (Atom)