My app generates reports for business and one option allows the user to view all the invoices in the app.
The app was working fine until now. As the data in the app grows, the reports become larger in size. Currently, the report has stopped displaying. I am using UIDocumentInteractionController to view the generated PDF reports.
I initially recorded Received memory warning.
messages in console. However, I eliminated that by setting the array that holds the data for PDF to nil
.
Now, when I run the app via Xcode, the app loses connection when the UIDocumentInteractionController shows up. When opening the app without xcode, the controller shows a black screen for a moment and then shows the size of the file (47MB) with the file name (Preview.PDF). It does not show the document.
How do I fix this issue?
I am using iPad 2 for work.
Thanks.