/ Users /..../ Desktop / apps /.... / _ / TableViewController.m:147:69:指向整数转换的指针不兼容将'NSString *'发送到'NSUInteger'类型的参数(又名'unsigned int')
这是代码
NSString * vak = [[jsonArray objectAtIndex:i] objectForKey:@"lesson"];
NSString * Lraar = [[jsonArray objectAtIndex:i] objectForKey:@"teacher"];
NSString * begin = [[jsonArray objectAtIndex:i] objectForKey:@"start"];
NSString * lok = [[jsonArray objectAtIndex:i] objectForKey:@"room"];
NSString * end = [[jsonArray objectAtIndex:i] objectAtIndex:@"end"];
答案 0 :(得分:2)
在最后一行中,您输入了objectAtIndex:@"end"
而不是objectForKey:@"end"
。