To configure UICollectionView or UITableView completely in plist is the desire of all developers. To translate a plist to a UIComponent, the basic steps would be:

  1. Read the content of a plist file into a Dictionary
  2. Transform the Dictionary’s key/value into appropriate Objective-C data: f.e: “xxFont”:”Helvetica-Bold(8-12)” to UIFont object.
  3. Set these data accordingly to the elements (which will need to recursively use step 2).

When creating a simple program, there are a few things to do to make a program better:

  1. Add MapView
  2. Add Tests
  3. Add Plist configurable reusable components
  4. Change String to numbers
  5. Memory management
  6. Add sorting, filtering, search
Advertisements