如何从iPhone SDK中提取UIBarButtonItem图标?

Jus*_*rls 9 iphone

我想从iPhone SDK中提取默认的UIBarButtonItem图标.我想他们可能只是作为alpha-channel-only PNG存储在iPhoneSimulator平台上,但我还没有找到它.

我正在寻找的是UIBarButtonSystemItemReply.(对于那些可疑的,甚至有一个有效的用例,我希望在用户可以发布回复的表行标题上使用它,行方式)

小智 17

要复制所有iPhone(或MacOS)系统图标,请转到目录:

cd /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/ 
Run Code Online (Sandbox Code Playgroud)

=>可能有多个iPhoneSimulator版本(iPhoneSimulator4.3.sdk),只需选择您喜欢的版本.然后执行以下命令:

find . -iname "*.png*" -print0 | xargs -I{} -0 cp -v {} /tmp/iPhoneIcons/
Run Code Online (Sandbox Code Playgroud)

/tmp/iPhoneIcons/ =>是目标目录

  • 从Mac OS 10.8开始,SDK目录移至`/ Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs` (6认同)

Sim*_*ide 4

Other.artwork 文件位于 /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks/UIKit.framework/ (您需要 SDK)。

使用“iPhoneShop-1.3.jar”程序(当前可用)所有图像提取到一个目录中。

java -jar iPhoneShop-1.3.jar ARTWORK Other.artwork EXPORT Other
Run Code Online (Sandbox Code Playgroud)