iphone - How to make image Disappear on touching it? -
i working on apllication iphone in xcode 3.1.
i want similar 2 images disappear when touched 1 after other.
i have succeed in displaying 2 images on iphone simulator on touching
'play' button.
now want when 2 same images 'touched' 1 after another,they should disappear.
expect code in objective c.
you can this, using simple animations view should disappear, later can cast context inside uiview animations delegate , start second animation.
aview.alpha = 1.0; [uiview beginanimations:nil context:@"context1"]; [uiview setanimationduration: 1.0]; [uiview setanimationcurve: uiviewanimationcurveeaseout]; [uiview setanimationbeginsfromcurrentstate:yes]; aview.alpha = 0.0; [uiview commitanimations];
this id delegate method should implement:
-animationdidstop:(nsstring *)animationid finished:(nsnumber *)finished context:(void *)context
Comments
Post a Comment