Fork me on GitHub

#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];

}

posted on 2013-07-18 10:50  lingfeng95  阅读(241)  评论(0编辑  收藏  举报