6
"info plist"프로젝트 번들에 배치 된 저작권을 사용하고 싶습니다. 문서화 된 키를 찾을 수 없습니다. 누구든지 열쇠의 가치를 알고 있습니까?번들에 정의 된 저작권을 얻으려면 infoDictionary 키는 무엇입니까?
[[[NSBundle mainBundle] infoDictionary] objectForKey: @"key-for-copyright"]
"info plist"프로젝트 번들에 배치 된 저작권을 사용하고 싶습니다. 문서화 된 키를 찾을 수 없습니다. 누구든지 열쇠의 가치를 알고 있습니까?번들에 정의 된 저작권을 얻으려면 infoDictionary 키는 무엇입니까?
[[[NSBundle mainBundle] infoDictionary] objectForKey: @"key-for-copyright"]
NSHumanReadableCopyright 여야합니다. 필요한 경우 현지화 할 수도 있지만 먼저 plist에 정의해야합니다. 다른 키 중 하나에 관심이 있다면 유용한 제안을 추가
이 같은 결과를 얻을 수
NSLog(@"%s \n%@", __FUNCTION__, [[[NSBundle mainBundle] infoDictionary] allKeys]);
:
2011-11-22 17:08:02.072 MyApp [1007:707] -[SplashScreenViewController viewWillAppear:]
(
CFBundleSignature,
DTSDKName,
DTPlatformBuild,
BuildMachineOSBuild,
NSBundleInitialPath,
NSHumanReadableCopyright,
CFBundleExecutable,
CFBundleIconFiles,
LSRequiresIPhoneOS,
CFBundleInfoPlistURL,
NSMainNibFile,
CFBundleShortVersionString,
CFBundlePackageType,
NSBundleResolvedPath,
DTSDKBuild,
CFBundleResourceSpecification,
DTXcodeBuild,
DTCompiler,
CFBundleDisplayName,
CFBundleDevelopmentRegion,
UTExportedTypeDeclarations,
DTPlatformName,
CFBundleURLTypes,
CFBundleName,
CFBundleVersion,
UTImportedTypeDeclarations,
CFBundleDocumentTypes,
DTPlatformVersion,
CFBundleSupportedPlatforms,
DTXcode,
MinimumOSVersion,
UISupportedInterfaceOrientations,
CFBundleIdentifier,
UIAppFonts,
UIDeviceFamily,
CFBundleExecutablePath,
CFBundleInfoDictionaryVersion
)
을 감사합니다 - 나는 또한 :) 요청 후 나는 그것을 발견 , 내가 물어보기 전에 열쇠를 버리려 고 생각 했어야했다. – mobibob
괜찮습니다. 좋은 질문입니다. – CodaFi
편집 주셔서 감사합니다 mobibob! 나는 덤프 할 생각 이었지만, 나보다 먼저 해 줬어. – CodaFi