I tried the Roman solution and I added a few settings for retina image processing. It works well, but remember that image names can be generated programmatically in code, and this script incorrectly displayed these images as unaccepted. For example, you may have
NSString *imageName = [NSString stringWithFormat:@"image_%d.png", 1];
This script will incorrectly think that image_1.png not displayed.
Here's the modified script:
#!/bin/sh PROJ=`find . -name '*.xib' -o -name '*.[mh]' -o -name '*.storyboard' -o -name '*.mm'` for png in `find . -name '*.png'` do name=`basename -s .png $png` name=`basename -s @2x $name` if ! grep -qhs "$name" "$PROJ"; then echo "$png" fi done
rob Oct 11 '11 at 20:17 2011-10-11 20:17
source share