Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 660
Luda Avatar asked May 21 '13 13:05

Luda


2 Answers

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

like image 145
Ric Perrott Avatar answered Oct 14 '22 14:10

Ric Perrott


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>
like image 25
trojanfoe Avatar answered Oct 14 '22 13:10

trojanfoe