0

Here is the json Response from Api Json Response from Api

Now I want to group the objects who has same date and show in UItableview with sections but I can't make the logic.

I want to make this look like the following Image

enter image description here

Kindly help me with this

Many thanks

Ammar
  • 105
  • 1
  • 10
  • http://stackoverflow.com/questions/24342542/how-to-split-nsarray-into-uitableview-sections-alphabetically for the global logic + http://stackoverflow.com/questions/37426662/how-to-check-if-two-nsdates-are-from-the-same-day for the "grouping" logic by checking the day instead of the first letter. – Larme May 04 '17 at 21:30

1 Answers1

1

Add each report to a dictionary of arrays using the date as the key. The number of keys is then the number of sections and each section size is the size of the associated array.

adamfowlerphoto
  • 2,708
  • 1
  • 11
  • 24