开发者

How to print a table view (any view) to an A4 PDF Document?

开发者 https://www.devze.com 2023-01-14 09:43 出处:网络
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

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);  
0

精彩评论

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