Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread Display Modes
Old Jul 22, 2010, 05:51 AM   #1
macrumors 6502
Join Date: Sep 2009
UIImageView resize animation


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
ranguvar is offline   0 Reply With Quote
Old Jul 22, 2010, 08:48 AM   #2
macrumors 68020
PhoneyDeveloper's Avatar
Join Date: Sep 2008
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.
PhoneyDeveloper is offline   0 Reply With Quote

MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Animation Desk for iPhone - Anyone can be an animator. Any idea matters. (New Video) swopes iPhone and iPod touch Apps 4 Jul 24, 2011 09:59 AM
call method from subclass of uiimageview sregorcinimod iPhone/iPad Programming 3 Apr 22, 2011 11:54 PM
zoom animation using animation with block based methods ashwinr87 iPhone/iPad Programming 4 Apr 20, 2011 09:24 AM
UIImageView Wont Display Image CosmicChild87 iPhone/iPad Programming 12 Nov 5, 2010 03:54 PM
How to speed up Inspector resizing animation? daverman OS X 0 Feb 9, 2008 10:56 PM

All times are GMT -5. The time now is 11:56 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013,, LLC