【问题标题】:IASK - InAppSettingsKitIASK - InAppSettingsKit
【发布时间】:2014-03-10 20:25:49
【问题描述】:

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

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".

当我改变时:

"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”,而不是默认值。

【问题讨论】:

    标签: ios iphone inappsettingskit


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 2011-07-01
      • 1970-01-01
      • 2014-12-09
      • 2011-12-04
      • 2012-08-18
      • 1970-01-01
      • 2013-01-24
      • 2011-07-16
      • 1970-01-01
      相关资源
      最近更新 更多