I don’t understand this:
+ (void)beginAnimations:(NSString *)animationID context:(void *)context
(void *) —-> what kind of data can I provide here?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use it to pass a pointer to the object that you’re animating. When you call
setAnimationDidStopSelectoryou have to give it a method selector to call. That method’s signature has to be of the form:The context value you defined in
beginAnimationsis passed untouched to this method. It’s just a (void *) which is shorthand for “a pointer to anything you want it to be.” An object, an integer, a struct. Whatever.Instead of “context” think of it as “userData.”