UITableView.layer renderInContext: after setContentOffset ?

2010-07-05 Thread Chaitanya Pandit
Hi, List I'm trying to create an image out of a UITableView using the layer's renderInContext Method, however my problem is that i have to create an image of the specific portion of the tableView So i call setContentOffset and then try to generate the image, however this doesn't work and I get

Re: UITableView.layer renderInContext: after setContentOffset ?

2010-07-05 Thread David Duncan
The table view lays out views to provide it's content, so it is likely that your content isn't in position at that point. The best advice in general is to not use renderInContext: for anything that isn't destined to be put immediately back on screen. Even in that case, there are pitfalls as