我在使用这段代码时遇到了问题:
for (int i = 0; i < [tempInviteeArray count]; i++)
{
NSArray *tempContact = [tempInviteeArray objectAtIndex:i];
NSDictionary *tempContactDictionary = [tempContact objectAtIndex:1];
int tempContactDelay = [[tempContact objectAtIndex:2] intValue];
FlokContact *tempContact = [[FlokContact alloc] initWithJSONData:tempContactDictionary andDelay:tempContactDelay];
}
最后一行抛出一个错误:
"Redefinition of 'tempContact' with a different type
initWithJSONData: 接受 NSDictionary andDelay: int
我试图用不同的类型重写这段代码,我只是不确定我在做什么