打印出所有的 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]);
}

posted @ 2011-04-28 10:41  冷愤僧  阅读(329)  评论(0编辑  收藏  举报