[[[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)总结
以上是内存溢出为你收集整理的iphone – 获取捆绑中定义的版权的infoDictionary密钥是什么?全部内容,希望文章能够帮你解决iphone – 获取捆绑中定义的版权的infoDictionary密钥是什么?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)