I have a UIButton
,
-(void)backBtn:(NSString *)parentId lbltext:(NSString *)label
function will be fired when push the button,
[button addTarget:self
action:@selector(backBtn:lbltext:)
withObject:par
withObject:title.text
forControlEvents:UIControlEventTouchDown];
I looked this question. But my fired function will change my button name, depends some functions with the parameters. So I can't create another class.
How can I make this code true?Thanks.