Closed conath closed 7 years ago
might be done like this:
NSMutableDictionary *prefs = [[NSMutableDictionary alloc] initWithContentsOfFile:@"/var/mobile/Library/Preferences/com.eswick.appcenter.plist"];
Please use:
[[@"~/Library" stringByExpandingTildeInPath] stringByAppendingPathComponent:@"/Preferences/com.eswick.appcenter.plist"]
It's just better practice! The user may not always be named mobile :)
mobile
might be done like this: