Here is the code how to set the value in the NSMutableDictionaryNSMutableDictionary *dict = [[NSMutableDictionary alloc] init];[dict setObject:@"007" forKey:@"Id"];
[dict setObject:@"Steve Job" forKey:@"name"];
[dict setObject:@"http://development-iphone-app.blogspot.com/" forKey:@"blog"];
NSLog(@"%@", dict);please follow the code to retrive the value from the NSMutableDictionaryNSString *Name = [dict valueForKey:@"name"];you will get the vale for the Name is Steve Job
0 comments:
Post a Comment