• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
specifying images for image views in nibs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

specifying images for image views in nibs


  • Subject: specifying images for image views in nibs
  • From: Steve Mills <email@hidden>
  • Date: Tue, 27 Nov 2012 11:26:12 -0600

How do I specify that an image view in a nib should use an image that's in a subfolder of a subfolder of the Resources directory in the bundle? Below is the hierarchy of the built app bundle. mixer.xib wants to use background.png in one of its image views.

Resources/
	English.lproj/
		mixer.xib
	images/
		mixer/
			background.png

Additionally, the source code hierarchy is different than how it appears in the built app bundle.

rsrc/
	English.lproj/
		mixer.xib
macrsrc/
	images/
		mixer/
			background.png

If I simply choose "background" from the list of "known" images in the Interface Builder inspection panel, I see the image in Interface Builder. But when I build and run the app, the image does not appear. I've tried typing in a specific partial path "images/mixer/background" and "images/mixer/background.png", but neither of those worked. What are the rules? I can find no documentation about this. When should the extension be given? So many questions - so little documentation.

--
Steve Mills
office: 952-818-3871
home: 952-401-6255
cell: 612-803-6157



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: specifying images for image views in nibs
      • From: Keary Suska <email@hidden>
  • Prev by Date: Build and Release Automation with Perl Language for *.nix.
  • Next by Date: Re: specifying images for image views in nibs
  • Previous by thread: Re: Problem with bug reporting site?
  • Next by thread: Re: specifying images for image views in nibs
  • Index(es):
    • Date
    • Thread