我在试图调用InAppSettingsKit中的两个InAppSettingsKit中的值时遇到了困难。我尝试从customCell中更改键值,但它会接缝,从而更改customCell文本字段的维度。在模拟器的设置包和设备中,它们看起来都很好,我只是想不出如何独立地调用它们。
例如
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
oneString = [defaults objectForKey:@"customCellOne"];
twoString = [defaults objectForKey:@"customCellTwo"]; Plist文件内容
项目0
-Title:一
-Type: IASKCustomViewSpecifier
-Key: customCell
-DefaultValue:这里的测试示例字符串项目1
-Title:两个
-Type: IASKCustomViewSpecifier
-Key: customCell
-DefaultValue:这里的测试示例字符串
任何帮助都会很好,
谢谢,
发布于 2011-02-26 13:37:51
我想我在吉顿的回答解决了这个问题:https://github.com/futuretap/InAppSettingsKit/issues/closed#issue/43
发布于 2011-02-23 11:15:56
我想出了如何设置不同的IASKCustomViewSpecifier细胞。我改变了它们上的键,它们现在看起来都很好,但我现在面临的问题是,当我走出设置包时,它并没有保存我对IASKCustomViewSpecifier单元的所有其他部分所做的更改,它工作得很好。我想这和这个代码有关
- (void)textViewDidChange:(UITextView *)textView {
[[NSUserDefaults standardUserDefaults] setObject:textView.text forKey:@"customCell"];
[[NSNotificationCenter defaultCenter] postNotificationName:kIASKAppSettingChanged object:@"customCell"];}
现在所有的键都不同了,不知道如何处理forKey@"customCell“。
https://stackoverflow.com/questions/5075044
复制相似问题