#import "ViewController.h"
@interface ViewController ()
@property (nonatomic, strong) UILabel *QQLabel;
@property (nonatomic, strong) UILabel *QQLoginLabel;
@property (nonatomic, strong) UITextField *num1TextField;
@property (nonatomic, strong) UITextField *num2TextField;
@property (nonatomic, strong) UIButton *loginButton;
@end
@implementation ViewController
#define kLabelHeight 30
#define kLabelWidth 40
#define kStartX 56
#define kStartY 90
#define kTextWidth 200
#define kTextHeight 30
#define kButtonWidth 100
- (void)viewDidLoad {
[super viewDidLoad];
//设置QQ文本标签
_QQLabel = [[UILabel alloc] initWithFrame:CGRectMake(kStartX, kStartY, kLabelWidth, kLabelHeight)];
self.QQLabel.text = @"QQ";
self.QQLabel.textAlignment = NSTextAlignmentCenter;
[self.view addSubview:_QQLabel];
//设置密码文本标签
_QQLoginLabel = [[UILabel alloc] initWithFrame:CGRe
objective-c制作QQ登录界面
最新推荐文章于 2023-01-08 22:18:40 发布