I am committing this simple animation that cause a button to shrink to a width of 0:
[UIView animateWithDuration:0.2
delay: 0.0
options: UIViewAnimationOptionCurveEaseIn
animations:^{
[btnActionButton setFrame:CGRectMake(160, 10, 0, 55)];
}
completion:^(BOOL finished){
}];
Now the problem is that once the animation begins, the titleLabel of the button hides automatically... I made it sure using the slowAnimation mode of the simulator.
Is it possible that the label also shrinks with the frame during the animation, because it seems quite awkward if button title disappears in the beginning.
Thanks in advance. Obaid