I'm attaching a few files to an email to export from the application I've written, namely a .pdf and a .png. I create these by rendering some view to a context and creating an image and a pdf. I can validate that the files are created properly (I can confirm this by looking in my apps sandbox from Finder, and also by sending the email. I receive the files correctly.)
The problem I'm getting is that larger files don't have a preview generated for them within the MFMailComposerViewController
view (I simply get a blue icon with a question mark).
Is there a limitation on file sizes that can be attached in order for preview to function correctly? With small files it works as expected, but if I try and attach a pdf with the following properties:
Pages: 1
Dimensions: 2414 x 1452
Size: 307 KB
the file is generated correctly, but displays the question mark icon.
If there is no way around that, can I remove the attachment preview altogether?
Many thanks,
Bryn