Search code examples
ios4iphone-sdk-3.0core-animationcocos2d-iphone

How to hide view when animation ends?


I'm using the curlup and curldown animation that works great. My problem is my view is still present for a second before it pushes the viewcontroller. How do I hide current view when animation ends?


Solution

  • you can set the view's alpha to to 0 once animation is complete like:

    [customView setAlpha:0];