Synchronizing plist across a Tab Bar Application
问题 I have a three tab application that shares a plist for connection information (Client ID, Server Address, Port Number). In each of the view controllers, an NSUserDefaults object is initialized within the viewDidLoad method: - (void)viewDidLoad { [super viewDidLoad]; // load default settings into class instance variables defaults = [NSUserDefaults standardUserDefaults]; self.clientID = [defaults objectForKey:@"clientID"]; self.serverAddress = [defaults objectForKey:@"serverAddress"]; self