perkinss / Beachcomber

The ONC beachcomber app
1 stars 1 forks source link

Jeff's iOS code #1

Closed jrproctor closed 12 years ago

jrproctor commented 12 years ago

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!
perkinss commented 12 years ago

Thanks Jeff. I'm heading in to the office now and I will merge the repos with when I get in. I know there's an easy way to get the gps data from the photo metadata itself, so I'll check to see if we can add that to the controller that receives the image from the camera

I'll be in touch again in about an hour (cycling from colwood)

Sent from my iPhone

On 2012-07-25, at 12:26 AM, jrproctorreply@reply.github.com wrote:

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!

You can merge this Pull Request by running:

git pull https://github.com/jrproctor/Beachcomber master

Or you can view, comment on it, or merge it online at:

https://github.com/perkinss/Beachcomber/pull/1

-- Commit Summary --

  • Initial Commit
  • Initial prototype of Table view, Photo view, and Photo detail view interfaces. Photo data is read from a plist (XML) file. Photo detail view currently does not save its changes.
  • Added BaseViewController which presents choice between data acquisition and data visualization views. presents native camera features when that option is selected. Also added scroll view to the editing interface
  • Merge branch 'master' of /Users/jeffproctor/Sites/BeachComber

-- File Changes --

A BeachComber.xcodeproj/project.pbxproj (483) A BeachComber/AppDelegate.h (22) A BeachComber/AppDelegate.m (76) A BeachComber/BaseViewController.h (23) A BeachComber/BaseViewController.m (142) A BeachComber/BeachComber-Info.plist (47) A BeachComber/BeachComber-Prefix.pch (14) A BeachComber/PhotoData.h (21) A BeachComber/PhotoData.m (72) A BeachComber/PhotoDetailViewController.h (38) A BeachComber/PhotoDetailViewController.m (144) A BeachComber/PhotoTableViewController.h (23) A BeachComber/PhotoTableViewController.m (215) A BeachComber/PhotoViewController.h (21) A BeachComber/PhotoViewController.m (69) A BeachComber/en.lproj/InfoPlist.strings (2) A BeachComber/image1.png (0) A BeachComber/image2.png (0) A BeachComber/image3.png (0) A BeachComber/image4.png (0) A BeachComber/main.m (18) A BeachComber/photo.plist (50) A BeachComberTests/BeachComberTests-Info.plist (22) A BeachComberTests/BeachComberTests.h (13) A BeachComberTests/BeachComberTests.m (32) A BeachComberTests/en.lproj/InfoPlist.strings (2)

-- Patch Links --

https://github.com/perkinss/Beachcomber/pull/1.patch https://github.com/perkinss/Beachcomber/pull/1.diff


Reply to this email directly or view it on GitHub: https://github.com/perkinss/Beachcomber/pull/1