Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

isthisonetaken

macrumors regular
Original poster
Jun 29, 2006
123
0
Hey All,

I've attached the sample app I am working with. It's two UIImageView subclasses, called CustomImageView on top of one another. They have large images placed in them in IB and their content mode is set to Aspect Fill. I have a tap gesture that lets the user tap to get a menu to set a filter (black and white or sepia). The filter is applied and the image is updated. That all works, but for some reason, the picture gets squished, as if its content mode is now Scale to Fill, except when I logged (before and after the image being reset) the content mode stays the same... I also logged the image sizes and they aren't changed, the frames and bounds aren't changed, it's just the content mode, except it doesn't show that it's changed either. Also I tried setting the content mode before and after, and that also didn't do anything.

Can anyone figure out what is going on?
 

Attachments

  • Awesome Menu Test.zip
    1.2 MB · Views: 27
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.