CSV SQLite DB Email in iOS

My application consists of sqlite db with multiple tables. Management is done using kernel data. I want to create a CSV database and send it to a specific email address with the click of a button. Any ideas?

+4
source share
1 answer

The answer to export csv is here: How to export a Core Data object to a CSV file

The answer to sending this file and then using Mail is here: pdf as an email attachment on an iOS device

Very straight forward! You do not need to save the file to disk, as you can handle it directly on mailComposer!

Enjoy it!

+6
source

Source: https://habr.com/ru/post/1433119/


All Articles