I'm new in Objective-C and Xcode.
I did the first program, "Hello Word", and now I want to change "hello word" message for another message. Here is the example in my code:
.h
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController {
IBOutlet UILabel * label;
IBOutlet UIButton * boton;
}
-(IBAction)click:(id)sender;
@end
.m
#import "ViewController.h"
@interface ViewController ()
@end
@implementation ViewController
-(IBAction)click:(id)sender{
label.text = @"hello Word" ;
label.text = @"here is the second string";
// i would like when i touch again the button to change to this string
}