hello I am new to xcode and working through the beginning IOS develppment book by Apress. I am getting stuck on an example in chapter 3 - handling user interaction.
The code is supposed to write a value to the screen when a button is pressed. However I get an error stating " 'property 'text' not found on object type NSconstraint". thanks
regards
Kaps
Code:
- (IBAction)buttonPressed:(UIButton *)sender {
NSString *title = [sender titleForState:UIControlStateNormal];
NSString *plainText = [NSString stringWithFormat:@"%@ button pressed.",title ];
_statusLabel.text= plainText;
}
The code is supposed to write a value to the screen when a button is pressed. However I get an error stating " 'property 'text' not found on object type NSconstraint". thanks
regards
Kaps
Last edited by a moderator: