View Full Version : Need some help with .XIB files
cartwa
Jun 18, 2009, 02:58 AM
My programmer has left for two weeks and he made an error that I need to change. I have 3 NIB files - viewone.xib, viewtwo.xib and viewthree.xib that all point to the same PNG. I need a separate PNG for each .xib
Can anyone tell me how I can change the PNG for the xibs point to?
dejo
Jun 18, 2009, 11:37 AM
Can anyone tell me how I can change the PNG for the xibs point to?
One at a time, do this:
Double-click each of the .xib files to open them in Interface Builder. You will probably easily spot the desired images in windows that look like mockups of your interface. (If you don't, let us know and we can try to help you find them another way).
Click on each image to select it (they will be noted as UIImageView).
Open the attributes inspector (Tools > Attributes Inspector)
At the top of the inspector, is a drop-down that lets you select the image for the image view, from previously imported images.
Choose the desired image you want from this dropdown. (If you haven't added the images you want to your project yet, again, let us know. We'll see what we can do.)
Save the .xib in Interface Builder
Rebuild your project
Profit! :D
cartwa
Jun 18, 2009, 04:58 PM
That did the trick. Thanks a ton!:)
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.