前几天在写项目的时候,有两个需求,一个是一个按钮不能在短时间内重复点击,另一个需求是扩大按钮的点击区域。

在网上找到了两个分类,分享给大家,github地址

https://github.com/wubianxiaoxian/SKFUIbuttoncategory

使用很简单,导入项目中的两个uibutton的category。

1,增加按钮点击间隔时间

self.yourButton.acceptEventInterval=5;

2,扩大按钮点击区域

 [self.yourButton setEnlargeEdgeWithTop:30 right:30 bottom:30 left:30];

相关文章:

  • 2022-12-23
  • 2021-05-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-29
  • 2021-11-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-13
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案