Hi,
I got a UIImageView that contains an image with rounded corners. The UIImage is created with the
method. I'd like to resize the UIImageView with an animation.
On the simulator, it appears to work fine, but on my old 1st gen iPod touch, I can see some problems. Say I resize the UIImageView to a smaller size. It appears the image for the smaller size is rendered and then scaled into the still larger size. This makes the rounded corners get messed up, of course. Then, the UIImageView actually gets smaller, gradually un-stretching the image until at the end of the animation, the corners are round again.
This seems to be something rather trivial. It's implemented a lot of times on the iPhone (e.g. the App Store "Buy" button resizes with animation when you tap it). How are you supposed to do this?
Thanks for any help!
- ranguvar
I got a UIImageView that contains an image with rounded corners. The UIImage is created with the
Code:
stretchableImageWithLeftCapWidth:topCapHeight:
On the simulator, it appears to work fine, but on my old 1st gen iPod touch, I can see some problems. Say I resize the UIImageView to a smaller size. It appears the image for the smaller size is rendered and then scaled into the still larger size. This makes the rounded corners get messed up, of course. Then, the UIImageView actually gets smaller, gradually un-stretching the image until at the end of the animation, the corners are round again.
This seems to be something rather trivial. It's implemented a lot of times on the iPhone (e.g. the App Store "Buy" button resizes with animation when you tap it). How are you supposed to do this?
Thanks for any help!
- ranguvar