0

I've a plist file which has a menu to be shown (related to a restaurant) I added the dictionary items in the order they have to be shown. But when I'm reading the plist file into NSDictionary, the same order in plist is not being maintained. Why? How should I display it in the same order as that in the plist?

一二三
  • 21,059
  • 11
  • 65
  • 74
Satyam
  • 15,493
  • 31
  • 131
  • 244
  • 3
    possible duplicate of [Are keys and values in an NSDictionary ordered?](http://stackoverflow.com/questions/1295459/are-keys-and-values-in-an-nsdictionary-ordered) – 一二三 Nov 04 '11 at 10:39
  • I'm not talking about the sorting for key/value pairs. – Satyam Jan 03 '12 at 07:22

1 Answers1

0

Instead of dictionary, we've to create nsarray which will read same and so we can display the same.

Satyam
  • 15,493
  • 31
  • 131
  • 244