Please note, this blog entry is from a previous course. You might want to check out the current one.
Divide your list of top places into sections (in the table view sense) by country. This will require a little bit different data structure in that MVC.
To sort our places into countries we need two new properties for the data model. placesByCountry will hold the places separated into their countries. countries will just hold the names of the countries sorted alphabetically.
@property (nonatomic, strong) NSDictionary *placesByCountry; @property (nonatomic, strong) NSArray *countries; ... @synthesize placesByCountry = _placesByCountry; @synthesize countries = _countries;
Continue reading “Assignment #4 Extra Task #1”