startButton.titleLabel.text = @"STOP";//do not work
[startButton setTitle:@"STOP" forState:UIControlStateNormal];//works
Why does the first line of code not work when i use the dot syntax to change the property ? And which method is better for setting properties generally?
this code return you the title of button that is text.
you can print this in log by
this line of code set the title of button.