我在覈心數據 中使用屬性eventName,eventDate,eventLocation.I使用SortDescriptors進行關鍵eventDate.I在這裏有一個問題,我需要設置我需要排序的位置首選項基於位置不是一個關鍵,但價值..對於前 - 假設我有位置設置爲「西雅圖」比位置西雅圖應顯示的所有事件。你有任何想法如何做到與FetchControllers ..請閱讀回答FetchControllers中的自定義排序描述符
前的問題,我想DONOT
[NSSortDescriptor sortDescriptorWithKey:@"eventLocation" ascending:YES];
但一些像
[NSSortDescriptor sortDescriptorWithKey:@"eventLocation==Seattle" ascending:YES];
(這是不對的,我知道這是謂語形式)
所有事件是數組還是字典數組? – 2013-07-15 10:16:28
@RanjuPatel沒有不在數組m使用fetch控制器的表視圖,我希望委託方法的工作以及..Db不是靜態的 – sheetal
http://stackoverflow.com/questions/1071765/how-to-sort-core- data-fetched-properties – 2013-07-15 10:22:59