Closed vuinguyen closed 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
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
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:
The new / edit journal screen with the date and time pickers still look like this:
The commit for the date/time edit function is here: https://github.com/vuinguyen/FishingDaze/commit/aaff50486fd561d69ce96292a61d2a2191d4e773
I will close this issue now.
Use Apple's data and time picker control, if possible