打印出所有的 info.plist 中的 keys、values
打印出所有的 info.plist 中的 keys、values
// get all keys and values in info.plist
NSBundle* mainBundle = [NSBundle mainBundle];
NSDictionary* infoDictionary = [mainBundle infoDictionary];
id key;
NSArray* keys = [infoDictionary allKeys];
NSLog(@"Display all keys and values in info.plist\n");
for(key in keys)
{
NSLog(@"key=%@ , value=%@\n",key,[infoDictionary objectForKey:key]);
}
-------------
胖叔——zhulin1987.com
胖叔——zhulin1987.com