On an UIButton I have set the title like this
[myButton setTitle:@”Play” forState:UIControlStateNormal];
on another button I have set same title
[myButton1 setTitle:@”Play” forState:UIControlStateNormal];
by setting button tag I can easily compare. But how can I compare buttons by their title name?
Get the title value first..
Now use the NSString function