how to update the plist file in ios [duplicate]
问题 This question already has answers here : iphone write to file fails (2 answers) Closed 6 years ago . I am developing one application.In that i am trying to update the plist file using below code. plist_path=[[NSBundle mainBundle]pathForResource:@"Configurationfile" ofType:@"plist"]; config_dict=[[NSMutableDictionary alloc]initWithContentsOfFile:plist_path]; [config_dict setValue:textField.text forKey:@"ServerURL"]; NSLog(@"%@",config_dict); [config_dict writeToFile:plist_path atomically:YES];