How can we print an ipad view containg uiimage and a uitableview of multiple rows
i have a view containing uiscrollview ..which contain uiimage of size 1000*1000 and also a uitable view having multipele row..uitable view itself scrolling adn we can also scroll the entire image..tableview is subview of uiimage pre开发者_JAVA技巧sent there..how can i print the entire things??
To print it you basically have to draw everything out to a temporary PDF, graphics and text, and then send it out for printing.
The Drawing and Printing Guide for iOS explains how to do everything.
Edit
There is an alternate, but the quality will be very low: you can capture the screen (renderInContext, as described by this post here) and then print the image.
Text will be jaggy and fuzzy, though better with with a Retina Display device.
精彩评论