您的位置:首页 > 产品设计 > UI/UE

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

2013-07-18 10:50 375 查看
#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];

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: