• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: UIImageView and UIViewContentModeBottomLeft
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >UIImageView and UIViewContentModeBottomLeft (From: sebi <email@hidden>)
 >Re: UIImageView and UIViewContentModeBottomLeft (From: David Duncan <email@hidden>)
 >Re: UIImageView and UIViewContentModeBottomLeft (From: Jonathon Kuo <email@hidden>)
 >Re: UIImageView and UIViewContentModeBottomLeft (From: David Duncan <email@hidden>)
 >Re: UIImageView and UIViewContentModeBottomLeft (From: sebi <email@hidden>)

  • Prev by Date: Re: AttributedString from NSData on iPhone.
  • Next by Date: Re: AttributedString from NSData on iPhone.
  • Previous by thread: Re: UIImageView and UIViewContentModeBottomLeft
  • Next by thread: confstr + [NSFileManager stringWithFileSystemRepresentation:length:] crash on Leopard
  • Index(es):
    • Date
    • Thread