UIButton关闭交互的三种实现方法

  UIButton的三种关闭交互的方法


  [UIButton buttonWithType:UIButtonTypeCustom].userInteractionEnabled = NO;

  [UIButton buttonWithType:UIButtonTypeCustom].enabled = NO;

  [[UIButton buttonWithType:UIButtonTypeCustom] removeTarget:self action:@selector(cancel)   forControlEvents:UIControlEventTouchUpInside];

你可能感兴趣的:(UIButton关闭交互的三种实现方法)