/ Published in: Objective C
URL: http://www.ipodtouchfans.com/forums/showthread.php?t=64679
Expand |
Embed | Plain Text
- (void)readPlist { NSString *value; value = [plistDict objectForKey:@"ProductVersion"]; /* You could now call the string "value" from somewhere to return the value of the string in the .plist specified, for the specified key. */ } - (void)writeToPlist { [plistDict setValue:@"1.1.1" forKey:@"ProductVersion"]; [plistDict writeToFile:filePath atomically: YES]; /* This would change the firmware version in the plist to 1.1.1 by initing the NSDictionary with the plist, then changing the value of the string in the key "ProductVersion" to what you specified */ }
You need to login to post a comment.
