随笔分类 - ios开发——各种UIView
摘要:- (void)viewDidLoad { UILabel *label1 = [[UILabel alloc]initWithFrame:CGRectMake(50.0, 20.0, 200.0, 50.0)]; UILabel *label2 = [[UILabel alloc]in...
阅读全文
摘要://初始化textfield并设置位置及大小UITextField *textField = [[UITextField alloc]initWithFrame:CGRectMake(20, 20, 130, 30)];//设置边框样式,只有设置了才会显示边框样式 textField.borderS...
阅读全文
摘要://这里创建一个圆角矩形的按钮UIButton *button1 = [UIButton buttonWithType:UIButtonTypeRoundedRect];//能够定义的button类型有以下6种//typedef enum {//UIButtonTypeCustom = 0, 自定义...
阅读全文

浙公网安备 33010602011771号