button的初始化有两种一种是动态创建 UIButton *button1 = [UIButton alloc]initWithFrame:CGRectMake(0, 0, 80, 50)]; 接下来设置button属性另一种是静态创建UIButton *button2 = [UIButton buttonWithType:UIButtonTypeRoundedRect];设置button2的frame