I have the following code snippet in my Xcode:
NSString *digit [[sender titlelabel] text]; NSLog([digit]);
I tried to build the application
Why do you have the brackets around digit? It should be
digit
NSLog("%@", digit);
You're also missing an = in the first line...
=
NSString *digit = [[sender titlelabel] text];