在iOS开发中,我们利用UI类来创建我们需要的对象,然后利用对象来完成我们索要做的事,现在我利用UI控件给大家介绍一些最常用最基本的类的用法,主要代码的用法如下:
#import "ViewController.h"
@interface ViewController ()
@property(strong,nonatomic) UIView *aview;
@property(strong,nonatomic) UIView *bview;
@property(strong,nonatomic) UIImageView *welcome;
@property(strong,nonatomic) UIImageView *beijing;
@property(strong,nonatomic) UIImageView *xuer;
@property(strong,nonatomic) UITextField *shurushoujihao;
@property(strong,nonatomic) UITextField *mimashurukuang;
@property(strong,nonatomic) UIImageView *touxiang;
@property(strong,nonatomic) UIImageView *mimasuotuoxiang;
@property(strong,nonatomic) UIButton *dengluButton;
@property(strong,nonatomic) UIButton *zhuceButton;
@property(strong,nonatomic) UIButton *big;
@end
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
//导入背景图
self.beijing=[[UIImageView alloc]initWithFrame:CGRectMake(</