When I try this
myUIImageView.bounds.size.width = 50.0f;
then I get an error: invalid lvalue in assignment
But when I do this, it compiles. Although it's a lot of extra-work
CGRect newRect = myUIImageView.bounds;
newRect.size.width = 50.0f;
myUIImageView.bounds = newRect;
Although that compiles, nothing will happen. My UIImageView's frame is 300 wide and filled with an image that is exactly 300px width. It fits perfectly. So now I wanted to stretch that image (just for fun), so I would have to make the bounds rectangle smaller in width. Lets say 50.0. But unfortunately, the image does not get stratched like expected. Just nothing happens. Two lines below this code, I move the image around. That works.