iphone开发第一个UI应用程序QQ

#import <UIKit/UIKit.h>

 

@interface HViewController : UIViewController

@property (retain, nonatomic) IBOutlet UITextField *qq;

@property (retain, nonatomic) IBOutlet UITextField *password;

@property (retain, nonatomic) IBOutlet UILabel *show;

 

- (IBAction)login;

@end

 

#import "HViewController.h"

 

@interface HViewController ()

 

@end

 

@implementation HViewController

 

- (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)login{

    _show.text=[NSString stringWithFormat:@"QQ:%@,密码:%@",_qq.text,_password.text];

}

- (void)dealloc {

    [_qq release];

    [_password release];

    [_show release];

    [super dealloc];

}

你可能感兴趣的:(iPhone开发)