What is the infoDictionary key for obtaining the copyrights defined in the kit?

I want to use the copyright placed in the project kit "info plist". I can not find the documented key. Does anyone know the meaning of the key?

[[[NSBundle mainBundle] infoDictionary] objectForKey: @"key-for-copyright"] 
+6
source share
1 answer

It must be NSHumanReadableCopyright. You can also localize it if necessary, but you must first define it in a plist.

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

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

which gives this result:

 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 ) 
+10
source

Source: https://habr.com/ru/post/902159/


All Articles