Re: UIImageView and UIViewContentModeBottomLeft
Re: UIImageView and UIViewContentModeBottomLeft
- Subject: Re: UIImageView and UIViewContentModeBottomLeft
- From: David Duncan <email@hidden>
- Date: Wed, 4 Aug 2010 17:41:44 -0700
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.
--
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