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