I am getting an error when I try to add a new object to dataArray. This is how I define dataArray.
dataArray
-(NSMutableArray *)dataArray{ i
Your argument to addObject: is likely nil.
addObject:
nil
Test it:
assert(attributeDict); assert([attributeDict objectForKey:@"level"]); assert([attributeDict objectForKey:@"probability"]);