Animate the enabling of a UIBarButtonItem?
Posted
by Michael Brewer
on Stack Overflow
See other posts from Stack Overflow
or by Michael Brewer
Published on 2009-11-18T03:24:24Z
Indexed on
2010/04/11
12:03 UTC
Read the original article
Hit count: 318
Is there a way to animate enabling or disabling a button? I've tried the following with no success. I'm guessing at this point that the enabled property cannot be animated like opacity can – but I hope I'm wrong.
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:1.0f];
theButton.enabled = YES;
[UIView setAnimationDelegate:self];
[UIView commitAnimations];
I can't believe there isn't a setEnabled:(BOOL)enabled animated:(BOOL)animated
method.
© Stack Overflow or respective owner