Have an object fade in and out of existance

Posted by happyCoding25 on Stack Overflow See other posts from Stack Overflow or by happyCoding25
Published on 2010-04-13T23:27:54Z Indexed on 2010/04/14 0:03 UTC
Read the original article Hit count: 251

Filed under:
|
|

Hello,

I have a view that sets its hidden when the user taps the main view. I need the view to fade in and out of existence so it looks smoother than just disappearing.

Heres my code so far (It's inside a touches event):

    if (!isShowing) {
        isShowing = YES;
        myView.hidden = YES;
                    //Needs to fade out here


}

    else {
        isShowing = NO;
        myView.hidden = NO;
                    //Needs to fade in here

}

© Stack Overflow or respective owner

Related posts about ipad-sdk

Related posts about ipad