Try this piece of code:
NSString *digit = [[sender titlelabel] text];
NSLog(@"%@", digit);
The message means that you have incorrect syntax for using the digit variable. If you’re not sending it any message – you don’t need any brackets.
Try this piece of code:
NSString *digit = [[sender titlelabel] text];
NSLog(@"%@", digit);
The message means that you have incorrect syntax for using the digit variable. If you’re not sending it any message – you don’t need any brackets.