I've a table view filled with data and I want to render the same vi开发者_StackOverflow社区ew to an A4 PDF document.
maybe this is useful for you: 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);
精彩评论