指向整数转换的指针不兼容,发送'NSString *'错误

时间:2014-09-24 18:08:33

标签: objective-c nsstring

/ 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"];

1 个答案:

答案 0 :(得分:2)

在最后一行中,您输入了objectAtIndex:@"end"而不是objectForKey:@"end"