KVC mean Key value coding
It used to store value in key ,after you access value which help of key is called KVC
ex:
step1: create nsuserdefaults
It used to store value in key ,after you access value which help of key is called KVC
ex:
step1: create nsuserdefaults
NSUserDefaults *storeData = [NSUserDefaults standardUserDefaults];
step 2:
set any value for any key
[storeData setObject:@"value" forKey:@"key"];
step 3:
read value to using same key
NSString *value = [storeData ObjectForKey:@"key"];
step 4: enjoy coding
Note: once you set value to key it does not change until you reassign value.
0 comments:
Post a Comment