xcode_3

#import "ViewController.h"
@interface ViewController ()
@end
@implementation ViewController
@synthesize mytext;
@synthesize mylabel;
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
- (IBAction)mybotton:(id)sender {
NSString * s=mytext.text;
if ([s length]==0)
{
s=@"YOU! my dear";
}
NSString * ss=@"Hello ";
ss=[ss stringByAppendingString:s];
mylabel.text=ss;
}
@end

Screen Shot 2556-07-08 at 1.20.48 PM