deivitaka / SQLiteApp

This is the Xcode project that I work on in the article "Managing Data in iOS Apps with SQLite".

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Result of call delete and updatedContact (cid: newContact:) is unused.

elivanK opened this issue · comments

Having problems with calling the methods delete and updateContact in the viewcontroller, the last step in this article: after missing argument label 'cid': in call Fix it insert "cid", result of call delete and updatedContact (cid: newContact:) is unused. Any idea how to fix it?

Found a solution: add @discardableResult before declare func delet and updateContact in the database class.