How To Use Multi Value Title and Value From Settings Bundle

motionpotion picture motionpotion · May 9, 2013 · Viewed 16.7k times · Source

I have a multi value setting (location) defined in my settings bundle for an app.
The Titles are defined as long titles, for example, "London" and the corresponding value part of the setting is defined as "1".

[EDIT]

To expand this question I will add more information about the multi value setting:

this is a screenshot of the multi value setting

How do I retrieve the Title of LONDON at Item 0. As described above when I retrieve the objectForKey or valueForKey I get 1 always. I want to display the string "LONDON" from the title in a label in the app but use the value 1 in core data. Note: I have set the value in the settings before the app runs so it does return a value but the value is always 1 as the Title does not seem to be accessible.

Answer

Alexander Slabinsky picture Alexander Slabinsky · Jul 25, 2013

You should set your "Default Value" value as "1" - Just Item 0 from your "Values" list.