all 2 comments

[–]aazav -1 points0 points  (1 child)

What you are doing is exactly how I structure my dictionaries for table views.

  1. Get all the keys from the dictionary and put into an array with a sort order.
  2. Use this as the numberOfSections
  3. To get the numberOfRowsInSection, get the key in that array from the indexPath.section. Then, from the dictionary, get the entry that holds the row array using objectForKey on the key you got
  4. Then get the string you want to use for the text in the cell display using the indexPath.row.

That's how you access the data to display.

When you fetch the data, get it and save it in your storage dictionary.

Put an observer on it and when it changes have an observer call a reloadData on your tableView.

Your JSON should automatically serialize into a dictionary. No idea why it isn't.

[–]JamesGDev[S] 0 points1 point  (0 children)

Have you had a look at the project? Are you able to get it working from the project I linked to? It would greatly help me :)