读取工程内的plist文件

 NSString *path = [[NSBundle mainBundle] pathForResource:@"AboutUs" ofType:@"plist"];

//字典类型
    _dataDict = [NSDictionary dictionaryWithContentsOfFile:path];

//数组
[NSArray arrayWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"welfare" ofType:@"plist"]]

你可能感兴趣的:(读取工程内的plist文件)