Re: UIImageView and UIViewContentModeBottomLeft

2010-08-05 Thread sebi
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

Re: UIImageView and UIViewContentModeBottomLeft

2010-08-05 Thread David Duncan
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

UIImageView and UIViewContentModeBottomLeft

2010-08-04 Thread sebi
Hello again, why is it that when I set the content mode of an UIImageView to UIViewContentModeBottomLeft I cant change it's size anymore? this is what I do: self.imageView.image = theImage; self.imageView.contentMode = UIViewContentModeBottomLeft; self.imageView.frame

Re: UIImageView and UIViewContentModeBottomLeft

2010-08-04 Thread David Duncan
On Aug 4, 2010, at 2:31 AM, sebi wrote: why is it that when I set the content mode of an UIImageView to UIViewContentModeBottomLeft I cant change it's size anymore? You can (and are) changing its size. However, if the content mode is not one of the resize modes, then the image is always

Re: UIImageView and UIViewContentModeBottomLeft

2010-08-04 Thread Jonathon Kuo
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

Re: UIImageView and UIViewContentModeBottomLeft

2010-08-04 Thread David Duncan
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