Hi,
I have an UIImageView called myImage.
I've implemented the code in an button the make the frame +100 height and width...
So when I press the button it's being bigger.
Code :
Code:
-(IBAction)pushButton {
CGRect newFrame = myImage.frame;
newFrame.size.width = myImage.frame.size.width+100;
newFrame.size.height= myImage.frame.size.height+100;
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:0.9];
[myImage setFrame:newFrame];
[UIView commitAnimations];
[UIView setAnimationDelegate:self];
}
All is working fine , but I want to add some code I don't know.
1 - I want to hide the imageview tilll the user press the button. So no image , user press , image comes with an animation of +100 for the frame size.
2 - After 0.9 second I want the animation stops and hide itself as the before pressing the button.
Can anyone please help me ?
Thankyou