获取son中的数据
 //创建路径

    NSString *path = [[NSBundle mainBundle] pathForResource:@"news" ofType:@"json"];

    NSData *data = [NSData dataWithContentsOfFile:path];

    NSError *error = nil;

    NSArray *arr = [NSArray arrayWithArray:[NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:&error]];

 
 
 
获取plist中的数据 

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

    //取出字典

    NSDictionary *cityDic = [[NSDictionary alloc] initWithContentsOfFile:path];