首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >IASK - InAppSettingsKit

IASK - InAppSettingsKit
EN

Stack Overflow用户
提问于 2014-02-12 21:22:04
回答 1查看 147关注 0票数 0

我是iPhone开发的新手。我在我的APP上使用IASK

代码语言:javascript
复制
Under root.plist, added new preference i.e, "new_preference" BOOL Key with type as PSToggleSwitchSpecifier, default value as NO. I'm able to access "new_preference" default value correctly (as FALSE) on my code using boolForKey:@"new_preference".

当我改变的时候:

代码语言:javascript
复制
"new_preference" to STRING / INTEGER Key with type as PSTextFieldSpecifier / 

PSMultiValueSpecifier, default value as "abcd" / "123". "new_preference" default value not reflects on my code with string/integerForKey:@"new_preference".

它的结果不是默认值,而是"null“/ "0”。

EN

回答 1

Stack Overflow用户

发布于 2014-02-13 18:13:56

InAppSettingsKit不会更改设置键的值,除非用户主动更改。如果键还不存在,可以将默认值视为显示的设置。由于您已经在前面使用BOOL值设置了密钥,因此不会更改此设置。

如果您要更改键的类型,您的工作就是将旧类型转换为新类型。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/21729165

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档