2012-05-08 1 views
2

메신저 kCFBundleNameKeykCFBundleNameKey 반환 널 (null)이 프로젝트는 여러 대상이

NSString *shortBundleName=[[NSBundle mainBundle] 
     objectForInfoDictionaryKey:(NSString *) kCFBundleNameKey]; 

를 사용하여 번들의 짧은 이름을 얻기 위해 노력하고있을 때, null을 반환 잘 작동하지만, 자사의 거기 해결할 수 있을까요? 번들 점점

잘 작동 :

는 NSString fullBundleName * = [NSBundle mainBundle] objectForInfoDictionaryKey (는 NSString *) kCFBundleIdentifierKey];

답변

0

CoreFoundation에서/CFBundle.h :

CF_EXPORT 
const CFStringRef kCFBundleNameKey; 
/* The human-readable name of the bundle. 
This key is often found in the InfoPlist.strings 
since it is usually localized. */ 

그래서, 당신은 당신의 목표의 Info.plist를주의해야