Could anyone please tell me am I handling memory correctly in following code in ARC environment? My concern is how would dict object released if I can't use release/autorelease in ARC! I know if it is strong type then it's get released before creating new one but in following look I don't know how would it works.
NSMutableArray *questions = [[NSMutableArray alloc] init];
for (NSDictionary *q in [delegate questions])
{
NSMutableDictionary *dict = [[NSMutableDictionary alloc] init];
[dict setValue:[q objectForKey:@"text"] forKey:@"text"];
[dict setValue:nil forKey:@"value"];
[dict setValue:[NSString stringWithFormat:@"%d",tag] forKey:@"tag"];
[questions addObject:dict];
dict = nil;
}