完整的
NSString *appDisplayNameString = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleDisplayName"];
簡短的
NSString *appBundleNameString = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleName"];
取得程式版本
NSString *appVersionString = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleVersion"];
沒有留言:
張貼留言