.m中部分代码, 模拟简易的登陆界面
UIView *labelBackground = [[UIView alloc] initWithFrame:CGRectMake(20, 60, 280, 150)];
[labelBackground setBackgroundColor:[UIColor lightGrayColor]];
labelBackground.alpha = 0.35;
[self.window addSubview:labelBackground];
labelBackground.layer.cornerRadius = 10;
UILabel *enter = [[UILabel alloc] initWithFrame:CGRectMake(40, 20, 60, 20)];
[enter setBackgroundColor:[UIColor cyanColor]];
enter.text = @"账号";
enter.textAlignment = NSTextAlignmentCenter;
enter.textColor = [UIColor blackColor];