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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to