Extra functionality to show/hide preference #2

kgn opened this Issue Jun 2, 2011 · 0 comments


None yet
1 participant

kgn commented Jun 2, 2011

In my application (LiveTrack 24 for iOS), I have recently added an option for the Live Map to pivot and follow the compass setting. All fine and well. What would be nice is to add an extra node to the xml, which would read a BOOL NSUserDefaults setting. As an example:
Before setting up InAppSettings, I would set the NSUserDefaults key "shouldShowMapPivot" based on whether or not the device has a compass built in. While parsing the plist, InAppSettings would then hide this settings entry if "NO", and show it if "YES".
The only other way that I can handle this is to make multiple plists, but then things start getting messy....
Thoughts ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment