setAnimationDidStopSelector: various applications and advanced
Monday, March 8, 2010In most cases, either because we are used or because we have seen in tutorials and in some text to setAnimationDidStopSelector like this: PLAIN TEXT Objective-C: [UIView beginAnimations: nil context: NULL], [UIView setAnimationDuration: 1.5 ] [UIView setAnimationCurve: UIViewAnimationCurveEaseInOut] [UIView setAnimationDelegate: self], [UIView setAnimationDidStopSelector: @ selector (removeView)]; myView.alpha = 0; [UIView commitAnimations] / / - (void) (removeView [MyView removeFromSuperview] ;) The code above sets the setAnimationDelegate self as delegate and through [...]










