button的两种初始化

button的初始化有两种 一种是动态建立  UIButton *button1 = [UIButton alloc]initWithFrame:CGRectMake(0, 0, 80, 50)];  接下来设置button属性 另外一种是静态建立 UIButton *button2 = [UIButton buttonWithType:UIButtonTypeRoundedRect]; 设置bu
相关文章
相关标签/搜索