Reading Bundle Name from info.plist file in iphone development

Now we are going to read Bundle Name from info.plist file,first we need to read plist file and store it in NSDictionary.

NSDictionary *infoDictionary=[ [NSBundle mainBundle]infoDictionary];

to read Bundle Name,

NSString *BundleName = [infoDictionary objectForKey:@”CFBundleName”]; // short Display of the name

NSString *BundleName = [infoDictionary objectForKey:@”CFBundleDisplayName”]; // Actual name of the app,,,,is it Useful?



Leave a Reply

Your email address will not be published. Required fields are marked *