Re: UIImageView and UIViewContentModeBottomLeft
Re: UIImageView and UIViewContentModeBottomLeft
- Subject: Re: UIImageView and UIViewContentModeBottomLeft
- From: sebi <email@hidden>
- Date: Thu, 5 Aug 2010 08:14:50 +0200
On 05.08.2010, at 02:41, David Duncan wrote:
> On Aug 4, 2010, at 4:46 PM, Jonathon Kuo wrote:
>
>> On Aug 4, 2010, at 9:43 AM, David Duncan wrote:
>>
>>> A UIView (really the CALayer owned by the view) can and will display content larger than its bounds if given to it.
>>
>> Is there a way to restrict this behavior, i.e., to make it that the UIView does not display content beyond its bounds? I'm dealing with this very problem. The content "spills" over onto other things.
>
>
> Typical method is to use clipsToBounds=YES to keep subviews (and views such as the above configured UIImageView) from spilling out of the view's bounds.
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.
Thanks and Regards,
Sebastian Mecklenburg
_______________________________________________
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