2017-05-04 36 views
0

這裏是從AP JSON響應 Json Response from ApiIOS - 基於UITableView的部分對象的值並顯示分組對象

現在我想組誰擁有的UITableView相同的日期和顯示與節中的對象,但我可以」不要做邏輯。

我想使這個看起來像下面的圖片

enter image description here

請幫我這個

非常感謝

+0

http://stackoverflow.com/questions/24342542/how-to-split-nsarray-into-uitableview-sections-alphabetically爲全球邏輯+ http://stackoverflow.com/questions/37426662/how-to -check-if-two-nsdates-are-from-the-the-day for the「grouping」logic by the day day,while first first letter。 – Larme

回答

1

每個報表添加到陣列的字典使用日期鑰匙。關鍵字的數量就是段的數量,每個段的大小就是關聯數組的大小。

+0

謝謝,我已經明白了 – Ammar