第28月第5天 uibutton交换方法

1.

//交换系统的方法
 

1 @implementation UIControl (MYButton)
2 + (void)load
3 {
4     Method a = class_getInstanceMethod(self, @selector(sendAction:to:forEvent:));
5     Method b = class_getInstanceMethod(self, @selector(__my_sendAction:to:forEvent:));
6     method_exchangeImplementations(a, b);
7 }
8 @end

 

//定义自己的点击事件  


 1 - (void)__my_sendAction:(SEL)action to:(id)target forEvent:(UIEvent *)event
 2 {
 3     if (self.my_ignoreEvent) return;
 4     if (self.my_acceptEventInterval > 0)
 5     {
 6         self.my_ignoreEvent = YES;
 7         [self performSelector:@selector(setMy_ignoreEvent:) withObject:@(NO) afterDelay:self.my_acceptEventInterval];
 8     }
 9     [self __my_sendAction:action to:target forEvent:event];
10 }

 

 

https://www.cnblogs.com/ruihaha/p/5886304.html

 

2.

大概分为 分解成5个步骤:拆分为5个构建版本——分解为.o文件(*5)——删除第三方库(*5)——.o文件合成(*5)——合成兼容版本。

 

https://blog.csdn.net/GigibondBaby/article/details/81237368

 

 

 

 

  504  lipo -info libanychatcore.a 

 

  507  lipo -extract_family arm64 -output libanychatcore_arm64_final.a libanychatcore.a 

 

  509  mkdir arm64

  510  cd arm64/

  511  ls

  512  ar -xv ../libanychatcore_arm64_final.a 

  513  ls

  514  objdump -d dictionary.o 

  515  objdump -r dictionary.o 

https://blog.csdn.net/g1602333924/article/details/52768573?utm_source=blogkpcl14

转载于:https://www.cnblogs.com/javastart/p/10224611.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值