chore: Initial clean commit
- Removed YuMi/Library/ (138 MB, not tracked) - Removed YuMi/Resources/ (23 MB, not tracked) - Removed old version assets (566 files, not tracked) - Excluded Pods/, xcuserdata/ and other build artifacts - Clean repository optimized for company server deployment
This commit is contained in:
26
YuMi/Appdelegate/YYTextAsyncLayer+PITextAsyncLayer.m
Normal file
26
YuMi/Appdelegate/YYTextAsyncLayer+PITextAsyncLayer.m
Normal file
@@ -0,0 +1,26 @@
|
||||
//
|
||||
// YYTextAsyncLayer+PITextAsyncLayer.m
|
||||
// YuMi
|
||||
//
|
||||
// Created by duoban on 2023/10/28.
|
||||
//
|
||||
|
||||
#import "YYTextAsyncLayer+PITextAsyncLayer.h"
|
||||
|
||||
@implementation YYTextAsyncLayer (PITextAsyncLayer)
|
||||
///iOS17bug,如果不把方法替换会闪退
|
||||
+(void)load {
|
||||
Method displayMethod = class_getInstanceMethod(self, @selector(display));
|
||||
Method swizzingMethod = class_getInstanceMethod(self, @selector(swizzing_display));
|
||||
method_exchangeImplementations(displayMethod, swizzingMethod);
|
||||
}
|
||||
-(void)swizzing_display{
|
||||
//通过变量名称获取类中的实例成员变量
|
||||
if (self.bounds.size.width <= 0 || self.bounds.size.height <= 0) {
|
||||
self.contents = nil;
|
||||
return;
|
||||
} else {
|
||||
[self swizzing_display];
|
||||
}
|
||||
}
|
||||
@end
|
Reference in New Issue
Block a user