Build iOS Database Apps with Swift and SQLite by Kevin Languedoc

Build iOS Database Apps with Swift and SQLite by Kevin Languedoc

Author:Kevin Languedoc
Language: eng
Format: epub
Publisher: Apress, Berkeley, CA


Once we have the image stored in the imageView, it is passed to the imageData using UIImagePNGRepresentation, which takes imageView.image as a parameter. The image data is passed and stored in the database using insertRecordAction function, which we will look at next.

Add the Insert Function

The insertRecordAction calls the dbDAO object, passing in the required parameters to insert it into the database. Most of the data used for the function comes from other functions and is assigned to the Wine instance class’s properties.

@IBAction func insertRecordAction(_ sender: AnyObject) {



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.