|Jul 22, 2010, 05:51 AM||#1|
UIImageView resize animation
I got a UIImageView that contains an image with rounded corners. The UIImage is created with the
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!
|Jul 22, 2010, 08:48 AM||#2|
Look at the MoveMe sample code for how this is usually done. The view is scaled with a transform.
Are you just animating a change of the frame? Maybe there's something odd about stretchable images.
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|Resolved: UIScrollView does not scroll a UIImageView||Tex-Twil||iPhone/iPad Programming||4||Nov 20, 2013 06:57 AM|
|UIImageView Transition||alaahershy||iPhone/iPad Programming||5||Sep 10, 2013 04:28 PM|
|Word 2008: Cannot Resize tables (with resize pointer)||mujimuji||Mac Applications and Mac App Store||1||Jul 31, 2013 12:09 PM|
|Setting UIImageView Behind UITextView||RagingGoat||iPhone/iPad Programming||4||May 19, 2013 07:11 PM|
|UIImageView problem||flashyx||iPhone/iPad Programming||1||Mar 2, 2013 04:10 AM|
All times are GMT -5. The time now is 04:27 PM.