I've a table view filled with data and I want to render the same view to an A4 PDF document.
+1
A:
maybe this is useful for you: http://stackoverflow.com/questions/3487766/iphone-screen-capture-for-a-view/
Here you find a gist I created to render an image of a view: https://gist.github.com/67f11f4968f3eb0aa095
edit
This will help you with the size
//CGRect rect = [[UIScreen mainScreen] bounds];
rect = [aTableView bounds];
UIGraphicsBeginImageContext(rect.size);
vikingosegundo
2010-09-02 11:22:21
Thank you, but this doesn't solve my problem. The table view is printed upside down, beside it is not complete, if it has rows more than the view on the screen they will not appear.
Ali El-sayed Ali
2010-09-06 12:25:27