Re: Question about scaling text within a subView
Re: Question about scaling text within a subView
- Subject: Re: Question about scaling text within a subView
- From: Jens Alfke <email@hidden>
- Date: Wed, 9 Jun 2010 14:57:52 -0700
On Jun 9, 2010, at 1:45 PM, Matej Bukovinski wrote:
> If you need sharp results on both scales don't apply a CGAffineTransform but rather increase your views frame and redraw everything as needed.
You actually need to mess with the view’s bounds after changing the frame, otherwise you get the normal behavior of the view just getting larger without scaling anything up. Specifically, you want to get the view’s bounds, change the frame, then restore the old bounds. That way the view’s internal coordinates stay the same while its world coordinates get larger, which scales its contents.
—Jens_______________________________________________
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