2014-02-12 32 views
0

我使用IASK是新來的iPhone development.I'm我APPIASK - InAppSettingsKit

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

而不是默認值,它導致的「空「/」0「。

回答

0

除非用戶主動執行,否則InAppSettingsKit不會更改設置鍵的值。如果鍵尚不存在,請將默認值視爲顯示的設置。由於您之前已經使用BOOL值設置了密鑰,因此不會更改。

如果您正在更改某個鍵的類型,那麼您的工作就是將舊類型轉換爲新類型。

相關問題