DoSomethingArchive / LetsDoThis-iOS

:iphone: iOS source code for DoSomething: Take Action on the News
http://app.dosomething.org
MIT License
2 stars 0 forks source link

Save PDF campaign attachments to device #1031

Closed aaronschachter closed 8 years ago

aaronschachter commented 8 years ago

Refs https://github.com/DoSomething/LetsDoThis-iOS/issues/1014#issuecomment-219719583

Rendering a PDF in the webview doesn't allow us to save to device or send to a printer. Minimalist approach could be to open PDF's in browser if it allows for saving / sharing out of box (vs adding our own functionality into our LDTWebViewController

aaronschachter commented 8 years ago

Looks like a UIDocumentInteractionController will do the trick.

aaronschachter commented 8 years ago

Running build on device and opening Birthday Mail stencils and noticed this warning, which doesn't seem to break anything. Seems like known iOS 9.3 bug:

objc[638]: UIPDFPageRenderOperation object 0x1262d7d60 overreleased while already deallocating; break on objc_overrelease_during_dealloc_error to debug objc[638]: UIPDFPageRenderOperation object 0x126630d90 overreleased while already deallocating; break on objc_overrelease_during_dealloc_error to debug objc[638]: UIPDFPageRenderOperation object 0x1262d65c0 overreleased while already deallocating; break on objc_overrelease_during_dealloc_error to debug