如新建一个cfg.plist , 添加 key1 value1 key2 value2 保存。下面代码可以读取
NSString * path = [[NSBundle mainBundle] pathForResource:@"cfg" ofType:@"plist"];
NSMutableDictionary * p =[[NSMutableDictionary alloc ] initWithContentsOfFile:path];
如新建一个cfg.plist , 添加 key1 value1 key2 value2 保存。下面代码可以读取
NSString * path = [[NSBundle mainBundle] pathForResource:@"cfg" ofType:@"plist"];
NSMutableDictionary * p =[[NSMutableDictionary alloc ] initWithContentsOfFile:path];