摘要:
// 初始化textfield并设置位置及大小 UITextField *text = [[UITextField alloc]initWithFrame:CGRectMake(20, 20, 130, 30)]; // 设置边框样式,只有设置了才会显示边框样式 //text.borderS... 阅读全文
摘要:
UILabel *label = [[UILabel alloc]init]; [self.view addSubview:label]; // 设置label 的大小,位置 label.frame = CGRectMake(97, 47, 223, 1); // 设置背景色 label... 阅读全文
摘要:
UIButton *button = [UIButton buttonWithType:UIButtonTypeRoundedRect]; //能够定义的button类型有以下6种 /*typedef enum{ UIButtonTypeCustom = 0; 自定义风格 UIButto... 阅读全文