Luda
Luda

Reputation: 7068

iOS: Find out if an image is used in some xib

I want to find out which images in the project are actually used. When I try to find names of images that were set programaticly, I can see them in the relevant classes when searching. This is not the case for images that were set in the xib. Is there some workaround to find if the image is used in some xib?

screenshot

Upvotes: 6

Views: 735

Answers (2)

trojanfoe
trojanfoe

Reputation: 122391

You can from the command line, yes.

As always, grep is your friend:

$ cd ~Source/Books/Beginning iOS 6 Development/ch04/Control Fun/Control Fun/en.lproj
$ grep png *
BIDViewController.xib:                          <string key="NSResourceName">apress_logo.png</string>
BIDViewController.xib:          <string key="NS.key.0">apress_logo.png</string>

Upvotes: 2

Ric Perrott
Ric Perrott

Reputation: 597

Try using the utility app Unused by Jeff Hodnett. I've used it before and had success with it.

Upvotes: 7

Related Questions