Two views need to be resized when a button is clicked in iPad .
I Tried it with following code
[UIView animateWithDuration:1.0 animations:^{
//Target Rect of the View will be given here
}];
It works fine with iPad4.2 ,but Crashes with 3.2 version(Incompatible).
On Googling found that 3.2 version supports only Animating Views (W/O Blocks)
Source:
http://developer.apple.com/library/iOS/#documentation/UIKit/Reference/UIView_Class/UIView/UIView.html#//apple_ref/occ/clm/UIView/beginAnimations:context:
They have mentioned its not advisable to use it for 4.0 and later
How can I achieve animating the views for both 3.2 and 4.2.
I you really need to support versions below 4.0, you can use this:
That moves an
UIImageView10 pixels up.Also check
UIViewreference to see all the possibilities.