Re: UITableView.layer renderInContext: after setContentOffset ?
Re: UITableView.layer renderInContext: after setContentOffset ?
- Subject: Re: UITableView.layer renderInContext: after setContentOffset ?
- From: David Duncan <email@hidden>
- Date: Mon, 05 Jul 2010 14:30:44 -0700
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 renderInContext does not implement the full Core Animation compositing model.
--
David Duncan
On Jul 5, 2010, at 12:01 PM, Chaitanya Pandit <email@hidden> wrote:
> 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 a totally black Image, it works if i don't set the contentOffset.
> Any idea?
>
> and sorry for the earlier email i hit send before was done editing the email
>
> Thanks,
> Chaitanya_______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden