Latest 1.1.0
Homepage https://github.com/hyukhur/HHUIImageNamed
License MIT
Platforms ios 8.0, requires ARC
Authors

HHUIImageNamed is drop-in style debugging tool to track image’s file name when we use +[UIImage imageNamed], -[UIImage imageWithContentsOfFile] and so on.

Build Status
codecov
codebeat badge

Objective-C
Carthage compatible
CocoaPods
GitHub license
Download
Twitter

Example

To see the example codes, check the unit test codes.
If you couldn’t find proper function, let me know. GitHub issues

If you use exploration tools like FLEX, you could find out which file makes the image.

Sample Image

Requirements

  • iOS8 or later
    • Actually it’s iOS5+. There is no limitation if you can import it.

Installation

HHUIImageNamed is available through CocoaPods. To install it, simply add the following line to your Podfile:

  pod 'HHUIImageNamed'

  post_install do |installer|
    installer.pods_project.targets.each do |target|
      if target.name.include? "HHUIImageNamed"
        target.build_configurations.each do |config|
          if config.name == 'Debug'
            config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)', 'USE_PRIVATE=1']
          end
        end
      end
    end
  end

Carthage

github "hyukhur/HHUIImageNamed"
$ carthage build HHUIImageNamed --configuration Debug

Usage

🚨 It contains "Private API" for Storyboard. Be careful it doesn’t contain in your product package.
There is MACRO to control whether it has or not, which is called "USE_PRIVATE". you could find it in HHUIImageNamed.h.
Release configuration set it zero by default not to use "Private API".
Even if you won’t like to use "Private API", you could track image file names in limitated situations.

Just Drop-in ‘HHUIImageNamed’ and trace the image name.

Author

Hyuk Hur

License

HHUIImageNamed is available under the MIT license. See the LICENSE file for more info.
GitHub license

Latest podspec

{
    "name": "HHUIImageNamed",
    "version": "1.1.0",
    "summary": "Drop-in style Image File Name tracking debug tool",
    "description": "HHUIImageNamed is drop-in style debugging tool to track image's file name when we use +[UIImage imageNamed], -[UIImage imageWithContentsOfFile] and so on.",
    "homepage": "https://github.com/hyukhur/HHUIImageNamed",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Hyuk Hur": "[email protected]"
    },
    "social_media_url": "http://twitter.com/HyukHur",
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/hyukhur/HHUIImageNamed.git",
        "tag": "1.1.0"
    },
    "source_files": "**/Classes/**/*.{h,m}",
    "public_header_files": "**/Classes/**/HHImageFileName.h",
    "requires_arc": true,
    "prefix_header_contents": "#define USE_PRIVATE 0"
}

Pin It on Pinterest

Share This