Here is my code ,
-(IBAction)casser{
oeuf1.contentMode = UIViewContentModeScaleAspectFit;
[UIView animateWithDuration:1.0 animations:^{
CGRect newRect = oeuf1.frame;
newRect.size.width *= 5;
oeuf1.frame = newRect;
[oeuf1 release];
}];
}
“oeuf1” is a UIButton
I want to multiply its width by five when I touch the button, but when I do that the button moves to the right and its width doesn’t change. How can I solve this?
Tested code 100% works
connect each method with specified