// Directly assigning the value.
NSString *str = [objDictionary objectForKey:@"attributeName"];
// Assigning with convenience method
NSString *str = [NSString stringWithFormat:@"%@", [objDictionary objectForKey:@"attributeName"]];
// Assigning after being owner to that object.
NSString *str = [[NSString alloc] initWithString:@"%@", [objDictionary objectForKey:@"attributeName"]];
In what cases, We need to identify which one needed to be used in code. ??? Any Reference links for difference between the same???
Or can someone answer the question in depth???
Thanks for the help.