开发者

Ordering of pList Files

I am reading in a pList file that I created. It has a list of categories in it and it reads in each one and creates a button to represent that category. The names are:

cHelp, cFun, cReading-Class

I would prefer that the order in the plist file is kept. But instead I get cReading-Class first, cHelp second, and cFun last.

In the file they are listed has cHelp, cFun, cReading-Clas开发者_如何学JAVAs.

Why does this happen? Is there a way to control the order? Modifing the order in the plist doesn't help.

Thanks for any and all help.


Are you talking about you have a plist file that contains a dictionary of category (which itself is a dictionary)? If it is a dictionary, it should have no order, if it is an NSArray, there should have an order. Double check for that

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜