vuinguyen / FishingDaze

A fishing journal app to document fishing trips, built for my capstone project, for my Udacity iOS Nanodegree program.
1 stars 1 forks source link

Journal Entry Screen: Date and Time Section #4

Closed vuinguyen closed 5 years ago

vuinguyen commented 5 years ago

Use Apple's data and time picker control, if possible

vuinguyen commented 5 years ago

Use this: https://developer.apple.com/documentation/uikit/uidatepicker

Also, let's show the current date and time by default in the picker. And of course, the user can change it in the edit screen

vuinguyen commented 5 years ago

So far, so good. We're now running into a bug where editing the date in the date section doesn't persist the change. But adding a new date/time and deleting an existing date/time seems to work, even with Core Data.

Here's the commit with the latest changes as of today: https://github.com/vuinguyen/FishingDaze/commit/58c34f928b0ec495777876b0ad6c6f1f5d3859d9

vuinguyen commented 5 years ago

Editing of the date section is persisted now, and is reflected in the start time and end time as well. We can also display the date in the journal list screen (main screen), which looks like this: Simulator Screen Shot - iPhone 8 Plus - 2019-07-15 at 17 56 27

The new / edit journal screen with the date and time pickers still look like this: Simulator Screen Shot - iPhone 8 Plus - 2019-07-15 at 17 56 42

The commit for the date/time edit function is here: https://github.com/vuinguyen/FishingDaze/commit/aaff50486fd561d69ce96292a61d2a2191d4e773

I will close this issue now.