6

I want to use the copyright placed in the bundle of the project "info plist." I cannot find the key documented. Does anyone know the value of the key?

[[[NSBundle mainBundle] infoDictionary] objectForKey: @"key-for-copyright"]
user
  • 86,916
  • 18
  • 197
  • 190
mobibob
  • 8,670
  • 20
  • 82
  • 131

1 Answers1

11

It should be NSHumanReadableCopyright. You can localize it too if needed, but it must be defined in the plist first.

Adding a useful suggestion if there is interest in any of the other keys:

NSLog(@"%s \n%@", __FUNCTION__, [[[NSBundle mainBundle] infoDictionary] allKeys]);

which yields a result like this:

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
  • 8,670
  • 20
  • 82
  • 131
CodaFi
  • 43,043
  • 8
  • 107
  • 153