I have a piece of code that applies an animation to a view. What I don’t get is why I need to explicicly setHidden to NO before I create and commit the animation.
The animation will only show if setHidden is set to NO.
For example:
-(void)animateView
{
[theView setHidden:No];
..Sets up animations..
[UIView commitAnimations];
}
Step through the code using the debugger and print out the value of hidden at different stages in the code.
To print the value of hidden, type something like this in the debugger: