我想在 iOS 中读取一个数据数组,但我只读取了这个数组中的一条记录,我检查了数组,它包含 10 个项目。
for(NSString *po in list) {
infor.poster = [po valueForKey:@"Poster"];
infor.vName= [po valueForKey:@"VName"];
infor.name = [po valueForKey:@"Name"];
infor.HDtrailerPath = [po valueForKey:@"HDTrailerPath"];
[arrfilm addObject:infor];
}
dispatch_async(dispatch_get_main_queue(), ^{
int widthlblscroll = 0;
for (Inforfilm *u in arrfilm) {
Inforfilm *infoF = [[Inforfilm alloc]init];
infoF.poster = [u valueForKey:@"poster"];
infoF.name = [u valueForKey:@"name"];
NSLog(@"%@",infoF.poster);
NSLog(@"%@",infoF.name);
}
});