资源后缀的常量:@ 2x,~ipad,-568h

时间:2012-10-18 18:37:34

标签: iphone ios nsstring retina-display

是否有各种资源后缀的Cocoa常量,目前为@2x~ipad-568h

2 个答案:

答案 0 :(得分:2)

没有。

您可以看到有关这些字符串的some documentation here (and in some other places) in Apple doc来命名您的资源,但它们没有Cocoa常量。

为了确定,我试图grep SDK目录中的字符串(/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/System/Library),这些字符串只能在框架二进制文件中找到,而不是在SDK的任何头文件中找到。

答案 1 :(得分:0)

MONResourceSuffix.h

extern NSString * const MONResourceSuffix_at2x;
extern NSString * const MONResourceSuffix_tilde_ipad;
extern NSString * const MONResourceSuffix_hyphen_568h;

MONResourceSuffix.m

NSString * const MONResourceSuffix_at2x = @"@2x";
NSString * const MONResourceSuffix_tilde_ipad = @"~ipad";
NSString * const MONResourceSuffix_hyphen_568h = @"-568h";

现在有:)