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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -