I have a plist file where I load key – value pairs. However the order that I have in the plist file does not match the order it is in the code.
I have the following
KEY — VALUE
Fartsgrense60 — VALUE
Fartsgrense70 — VALUE
Annet — VALUE
and in the program it is Annet, Fartsgrense70 and Fartsgrense60. Why is it so, and how can I fix that?
You will have to define your plist as an array made up of dictionaries for for key pair. Alternatively you could store your dictionary in the plist as well as an array of the key in the order you want them.