iphone - Pass @selector an object -
i have animation block on uiview, , pass animationdidstopselector
object, when animation finishes, object can removed array.
the following code, doesn't work.
[uiview setanimationdidstopselector:@selector(animationdidstopwithobject:)]; self.dialogcontroller.view.alpha=1; [uiview commitanimations]; [self.view addsubview:self.dialogcontroller.view]; } - (void)animationdidstopwithobject:(nsstring*)obj { [items removeobject:obj]; [self.tableview reloaddata]; }
how can pass selector object?
thanks
check uiview reference. selector pass +setanimationdisstopselector: method must of form
- (void)animationdidstop:(nsstring *)animationid finished:(nsnumber *)finished context:(void *)context
you can pass object selector using animations context (void* pointer passed parameter in +beginanimations:context: call)
Comments
Post a Comment