Let the Xcode Media Library more useful
Show image size for image type media. Size is shown as @1x scale. USE IT IN CODE WITHOUT THINKING!!!
- Clone this repository.
- Open and run the project.
- Restart Xcode.
#Usage open MediaLibrayTweak in Windows menu, click, then custom the image size string;
This plug-in is ONLY test in Xcode 6.3.1, but should work will on Xcode 6.x and later. If the plugin does not work, perhaps I miss the UUID of your Xcode version.
Get you xcode UUID
defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID
Copy the output and add it to XcodeMediaLibraryTweak's info.plist DVTPlugInCompatibilityUUIDs Key. Then Try run and restart Xcode.
Any question, issue me.^_^ #THANKS
- Xcode 4 插件制作入门
- Creating an Xcode Plugin: A Quick-Start Guide。这里有提到下面的DTXcodeUtils
- DTXcodeUtils, 一个快速上手的xcodePlugin模版,省去配置项目的烦恼
- DBSmartPanels。我是学习了这个代码写的XcodeMediaLibraryTweak
- 可以直接显示xcassets里图片的大小