Is it possible to print the layout of a UIView. Should I create a PDF from the contents of the view? What is the best way of going about this? Thanks.
Asked
Active
Viewed 396 times
0
-
Do you want to print the whole content on particular view? By print you mean to send the data and print with a printer or you want to save the view content in specific format? – Amit Oct 30 '14 at 13:43
-
I would like to AirPrint an image and the contents of a text view with a printer – Tom Coomer Oct 31 '14 at 15:01
1 Answers
0
As you just want to print the content, according to me, best option would be to take screenshot of the entire view and print it (take screenshot of view content)
- If your textView is having contents off the scroll area, then it can be slightly tricky. You need to take the screen shot of entire textview (including area not visible) checkhere, and the image on image view separately. Then you need to combine these two in desired way.
After that you can print the image.