Write value for key:
[progressDict setObject:@"Uploading ..." forKey:@"status"];
[progressDict setObject:[NSNumber numberWithInt:i] forKey:@"progress"];
Read value for key:
NSLog(@"key is status, value is %@",[dict objectForKey:@"status"]);
NSLog(@"key is progress, value is %@",[dict objectForKey:@"progress"] );
No comments:
Post a Comment