0
我有一個的NSDictionary,它看起來像:Reorganizate的NSDictionary鍵
0 = {
content = Test;
date = "2012-02-02 18:36:46 +0000";
};
1 = {
content = "#### da ####";
date = "2012-02-02 18:36:46 +0000";
};
2 = {
content = dfdffdfddfdffddf;
date = "2012-02-03 20:30:31 +0000";
};
但是,如果我刪除(在實施例編號1)的第二密鑰的所述字典結束等:
0 = {
content = Test;
date = "2012-02-02 18:36:46 +0000";
};
2 = {
content = dfdffdfddfdffddf;
date = "2012-02-03 20:30:31 +0000";
};
我該如何重組它們,以便在需要時維護訂單(如0,1,2,3)?
http://cocoawithlove.com/2008/12/ordereddictionary-subclassing-cocoa.html – vikingosegundo 2012-02-03 20:41:32
爲什麼不直接使用NSDutableaires的NSMutableArray? – Intentss 2012-02-03 20:48:18
「重組」,我從來沒有。 – Fogmeister 2013-02-02 17:47:17