perkinss/Beachcomber — pull request #1 by jrproctor (2012-07-25 07:26:02+00:00)
Title: Jeff's iOS code

Hey Susan,

I pushed my code to this repo. Feel free to pull it if you want to have a look. Sorry if it is sparse on comments, but I think it shouldn't be too difficult to understand.

BaseViewController - presents two options: take a photo, or view photo library. Displays iOS UIImagePicker interface if the first option is taken.

PhotoTableViewController - presents photo library as a tableView. (this is presented when the second option is taken)

PhotoViewController - super basic view controller that presents a full screen

PhotoDetailViewController - presents a trimmed version of the photo, and two text fields for category and comment. category is selected using a UIPickerView widget.

PhotoData - stores photo meta data. Each photo is represented by a dictionary in an array. Each dictionary currently contains objects with the keys "comment", "category" and "imageFile". GPS coordinates could be added to these dictionaries. Photo data is stored to a local XML file using built-in iOS functions when the app closes.

Known issues:
1. cancel/finish button isn't always provided with the keyboard
2. I haven't verified any of the UIImagePicker code, because it won't run in the simulator
3. Does not store GPS data when a photo is taken. You could integrate your code for this.
4. Editing is not implemented for the PhotoTableViewController (photos cannot be deleted or rearranged).
5. The app needs to be beautified somewhat
6. Data transfer is not implemented
7. I currently have 4 silly images stolen from Google images built into the app to make it easy for testing. (along with an accompanying XML file). These will be removed later!