方法1: [UIButton enabled]函数,此方法在ButtonType为自定义的时候,会影响按钮的外观,所以不推荐使用 方法2: [UIButton userInteractionEnabled],不会影响,推荐使用