1.
//交换系统的方法 @implementation UIControl (MYButton)
+ (void)load
{
Method a = class_getInstanceMethod(self, @selector(sendAction:to:forEvent:));
Method b = class_getInstanceMethod(self, @selector(__my_sendAction:to:forEvent:));
method_exchangeImplementations(a, b);
}
@end //定义自己的点击事件 - (void)__my_sendAction:(SEL)action to:(id)target forEvent:(UIEvent *)event
{
if (self.my_ignoreEvent) return;
if (self.my_acceptEventInterval > )
{
self.my_ignoreEvent = YES;
[self performSelector:@selector(setMy_ignoreEvent:) withObject:@(NO) afterDelay:self.my_acceptEventInterval];
}
[self __my_sendAction:action to:target forEvent:event];
}
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