一.创建,两种方法: 1. 常规的 initWithFrame UIButton *btn1 = [[UIButton alloc]initWithFrame:CGRectMake(10, 10, 80, 44)]; 2. UIButton 的一个类方法(也可以说是静态方法)buttonWithType UIButton *btn2 = [UIButton buttonWithType:UIButtonTypeRoundedRect]; 风格有如下: typedef enum { UIButto…