zoukankan      html  css  js  c++  java
  • 第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

  • 相关阅读:
    喜欢这效果
    jQuery.Validate 使用例子
    网站安全要略谨记
    asp.net发送邮件
    URL参数的加号等特殊字符的处理
    sqlhelper
    Python单元测试框架
    基于Selenium2与Python自动化测试环境搭建
    Robot Framework和Selenium 2 Grid集成指南
    APP性能测试(CPU)
  • 原文地址:https://www.cnblogs.com/javastart/p/10224611.html
Copyright © 2011-2022 走看看