//1.创建按钮,有多种方法来创建,经常使用的方法是buttonWithType UIButton *button = [UIButtonbuttonWithType:UIButtonTypeSystem];