evmiyaki/State-App — pull request #2 by mudphone (2014-05-08 04:19:55+00:00)
Title: Loading initial state where the user is located and displaying info.

This is an imperfect fix. I did a lot of things to make this work.

In brief...
1) moved the state loading code to its own class StateDataLoader.m/h
2) set the context on the initial state tvc as the app loads (see AppDelegate.m)
3) when context is set in state tvc, attempt to display placemark info
4) when placemark is set (device is located, which might happen after a delay) display placemark info
5) when placemark info set, look up the state in the DB via the state abbreviation
6) when state set, update state info

In order to get the labels to display their contents, I had to change your custom UITableViewCells from "Basic" to "Custom" types. I then rewired the outputs and now the information shows up.

Don't freak out. Just try looking at the code I modified.