I create a button and set title as \"Click here\". When I press that button I want to get that button title and log it. Here\'s my code, where am I going wrong?
-(void)displayvalue:(id)sender { UIButton *resultebutton= (UIButton*)sender; NSLog(@"The button title is %@ ", resultebutton.titleLabel.text); }