如何存储应用程序首选项(iphone)
我有我的应用程序的设置列表,基本上设置了您需要的禁用访问设施,如下所示: 我还没有弄清楚如何开/关,但那是以后的事了目前,文本和图标存储在两个数组中:如何存储应用程序首选项(iphone),iphone,objective-c,ios,plist,datasource,Iphone,Objective C,Ios,Plist,Datasource,我有我的应用程序的设置列表,基本上设置了您需要的禁用访问设施,如下所示: 我还没有弄清楚如何开/关,但那是以后的事了目前,文本和图标存储在两个数组中: arryTableIconsText = [[NSMutableArray alloc] init]; [arryTableIconsText addObject:@"Facilities for partially sighted or blind people"]; [arryTableIconsText addO
arryTableIconsText = [[NSMutableArray alloc] init];
[arryTableIconsText addObject:@"Facilities for partially sighted or blind people"];
[arryTableIconsText addObject:@"An 'assistance dogs welcome' policy"];
[arryTableIconsText addObject:@"Disabled access facilities for wheelchair users (with assistance)"];
..etc
arryTableIcons = [[NSMutableArray alloc] init];
[arryTableIcons addObject:@"visuallyImpaired_off.png"];
[arryTableIcons addObject:@"guidedogs_off.png"];
[arryTableIcons addObject:@"wheelchairassist_off.png"];
[arryTableIcons addObject:@"walk_off.png"];
..etc
selectedCellIndexes = [[NSMutableIndexSet alloc] init];
但是现在我开始思考,现在我正在做这个实际的页面,我猜他们将不得不从plist或类似的版本中出来?只是为了保存开/关的值
在plist中保存它的最好方法是什么?plist是正确的方法吗
我假设任何数据源都会有iconID | iconImage | iconText | iconState
这是正确的方法吗
汤姆检查默认值。此类通过提供方便的方法帮助您存储和管理应用程序设置。您可以看到这一点