草庐IT

plistDict

全部标签

ios - iOS 设备上的 .plist 路径

-(void)login{NSBundle*bundle=[NSBundlemainBundle];NSString*path=[bundlepathForResource:@"login"ofType:@"plist"];NSMutableDictionary*plistDict=[[NSMutableDictionaryalloc]initWithContentsOfFile:path];[plistDictsetObject:@"si"forKey:@"stato"];[plistDictwriteToFile:pathatomically:YES];}在iOS模拟器中,plis