开发者

iPhone: Secure container

We're building an app that will download confidential PDF data. Once downloaded, it must be displayed securely. No copy/pasting allowed, or other ways of getting the data off the device. Eyes-o开发者_开发百科nly reading.

Is there a way to make the webView container act as such a secure container to display these PDFs?


This is not 100% fool-proof in practice. You won't be able to prevent the user from taking a screenshot using the Home-Power button combination, or take a picture of the phone screen with another phone.


I guess you can draw the PDF data onto a UIImage and display that. Also, just keep the data in memory and don't persist it to disk.


Use a CGImageRef in Quartz2D and create a UIImage with that representation, then use good 'ol UIImagePNGRepresentation on the created UIImage. Then, make sure you release all the objects in the viewWillDisappear or similar.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜