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];
}
@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];
}
相关文章推荐
- SpringBoot 入门教程实例详解(一) 开发第一个SpringBoot应用程序实例
- 开发您的第一个 Eclipse RCP 应用程序
- iPhone开发【五】常用控件之Slider(不使用xib构建UI)
- 开发您的第一个 Eclipse RCP 应用程序(4/12)
- 开发您的第一个 Eclipse RCP 应用程序(12/12)
- iOS开发 - 第02篇 - UI进阶 - 04 - QQ聊天界面
- iPhone开发中我所遭遇的 各种协议之<UIApplicationDelegate> ------------ 1
- Netty4详解二:开发第一个Netty应用程序
- iphone开发 UIAlertView+ UIPickerView
- 用C#开发第一个WINDOWS应用程序
- SharePoint使用BCS开发你第一个应用程序(二)
- (iPhone/iPad开发)实现应用程序icon及UITabBar右上角带红圈中数字
- SharePoint使用BCS开发你第一个应用程序(三)
- iPhone开发之退出应用程序
- SharePoint使用BCS开发你第一个应用程序(三)
- iPhone应用程序开发指南 学习笔记
- 用Eclipse开发iPhone Web应用程序
- Windows 8技巧:Xaml+C#开发第一个Metro Style应用程序的使用
- Netty4详解二:开发第一个Netty应用程序
- iphone开发之基本UI控件(Button控件,开关控件,分段控件,滑块控件,WebView)