- 添加文本与编辑框:
UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(20, 20, 200,40)];
label.backgroundColor = [UIColor blueColor];
label.textColor = [UIColor blackColor];
label.text = @"Mylabel";
[label setFont:[UIFont boldSystemFontOfSize:14]];
[self.view addSubview:label];
UITextField *textField = [[UITextField alloc]initWithFrame:CGRectMake(20, 70, 260, 30)];
textField.b