Weight Logging App. | #3 - Add Images to CoreData

Описание к видео Weight Logging App. | #3 - Add Images to CoreData

TIMELINE:
2:50 - Modify the CoreData Model
4:22 - Changing the Storyboard layout + Actions/Outlets
10:40 - Implementing UIImagePickerController
21:00 - Creating image scaling method
27:10 - Saving image to documents directory / CoreData
43:30 - Handle deletion of photo from Doc. Dir / CoreData
49:55 - Transfer data from one view to the next
55:55 - Implementing full screen image, getting image from url

In this video I extend the weight logging application to include images in the CoreData model. The images are stored locally in the apps Documents directory, and a reference to the images is saved in CoreData.

We first alter the CoreData model and then configure the storyboard with buttons, an imageView, and a new viewController to display the image fullscreen. Then we configure the UIImagePickerController, for the user to select or take a photo. We then handle all cases of the user saving and deleting the CoreData objects. Finally, we run the app and test the functionality.

Links:
WeightLogger (before video): https://github.com/TDAbboud/WeightLogger
WeightLogger-Images: https://github.com/TDAbboud/WeightLog...

Комментарии

Информация по комментариям в разработке