I know QLPreviewController could do this. But it's full screen, my requirement is preview files in a subview.
I tried use a offline window to present the QLPreviewController, and then make a screenshot of the offline window.
The problem is i have to show the window, otherwise the screen shot doesn't catch any thing.
Then my question could be, how to make screen shot for offline window in ios ?
Or you may have better ideas of implement file preview in another way.
Any tips will be appreciated.