Re: UIImageView and UIViewContentModeBottomLeft
Re: UIImageView and UIViewContentModeBottomLeft
- Subject: Re: UIImageView and UIViewContentModeBottomLeft
- From: David Duncan <email@hidden>
- Date: Thu, 5 Aug 2010 09:21:50 -0700
On Aug 4, 2010, at 11:14 PM, sebi wrote:
> Cool, thanks, that did it.
> What is the reason for clipsToBounds=YES is not being the default? I would think that's what most developers need.
Typically it isn't necessary, since views are usually placed within the bounds of their parents and content is usually sized for the view.
But clipping isn't free (it is usually fairly cheap however). In particular if clipsToBounds=YES was the default, then all of your views would clip all of their subviews leading to O(n^2) clipping operations (where n is the depth of your view hierarchy).
--
David Duncan
_______________________________________________
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