synthesize
@synthesize statusText;
This is how we tell the compiler to automatically create the accessor and mutator methods for us.
two invisible methods in out class
:statusText setStatusText:
but they are there nonetheless waiting for use them.
when either button is tapped
-(IBAction)buttonPressed: (id)sender {
NSString *title = [sender titleForState:UIControlStateNormal];
NSString *newText = [[NSString alloc] initWithFormat:
@"%@ button pressed.", title];
}