To do that, we need to accomplish two things:
1 Create a reference to the label so we can send it messages.
2 Give the label new text to display
@property (nonatomic, strong) IBOutlet UILabel *targetLabel;
- (void)updateLables
{
self.targetLabel.text = [NSString stringWithFormat:@"%d", targetValue];
}
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
[self startNewRound];
[self updateLables];
}
pp84