4

My application consists of a sqlite db with several tables. Managed via Core Data. I want to generate CSV of the database and mail it to a certain mail address on a button pressed. Any ideas?

1 Answer 1

6

The answer to exporting csv is located here: How to export Core Data entity to a CSV file

The answer to sending this file then with Mail is located here: pdf as an email attachment in iOS device

Very straight forward! You don't have to save the file to disc, as you can handle it directly to the mailComposer!

Enjoy!

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.