Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extra functionality to show/hide preference #2

Open
kgn opened this issue Jun 2, 2011 · 0 comments
Open

Extra functionality to show/hide preference #2

kgn opened this issue Jun 2, 2011 · 0 comments

Comments

@kgn
Copy link
Owner

kgn commented Jun 2, 2011

Greetings
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 ?
regards
Peter

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

No branches or pull requests

1 participant