随笔分类 - UIKit
摘要://按钮初始化类方法 UIButton *button1 = [UIButton buttonWithType:UIButtonTypeRoundedRect];//这里创建一个圆角矩形的按钮//按钮初始化实例方法UIButton *button1=[[UIButton alloc]initWith...
阅读全文
摘要://初始化textfield并设置位置及大小UITextField *text = [[UITextField alloc]initWithFrame:CGRectMake(20, 20, 130, 30)];//设置边框样式,只有设置了才会显示边框样式 text.borderStyle = UIT...
阅读全文
摘要:(1)初始化 UILabel *aLabel=[[UILabel alloc]initWithFrame:CGRectMake(50, 50, 100, 50)];(2)文字内容 //位置默认是靠左的 [aLabel setText:@"hello"]; //设置字体颜色 aLabel.textC...
阅读全文

浙公网安备 33010602011771号