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