ios - CFBundleDisplayName returns 'null' -


i'm trying app name use navcontroller title, whatever can't cfbundledisplayname value. returns 'null'.

this code i'm using

[nsbundle mainbundle] infodictionary][@"cfbundledisplayname"] 

checked bundles = there 1 only. xcode5 / dev target ios5. haven't checked on device though. using simulator.

thanks!

try code app name

   nsstring *appname =      [[[nsbundle mainbundle] infodictionary] objectforkey:(nsstring *)kcfbundlenamekey]; 

Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -