Files
yinmeng-ios-store/yinmeng-ios/DingDangApp/AppDelegate/YYTextAsyncLayer+DDTextAsyncLayer.m

27 lines
778 B
Mathematica
Raw Normal View History

2023-12-15 16:42:52 +08:00
//
// YYTextAsyncLayer+DDTextAsyncLayer.m
// DingDangApp
//
// Created by duoban on 2023/12/14.
//
#import "YYTextAsyncLayer+DDTextAsyncLayer.h"
@implementation YYTextAsyncLayer (DDTextAsyncLayer)
///iOS17bug退
+(void)load {
Method xp_displayMethod = class_getInstanceMethod(self, @selector(display));
Method xp_swizzingMethod = class_getInstanceMethod(self, @selector(xp_swizzing_display));
method_exchangeImplementations(xp_displayMethod, xp_swizzingMethod);
}
-(void)xp_swizzing_display{
//
if (self.bounds.size.width <= 0 || self.bounds.size.height <= 0) {
self.contents = nil;
return;
} else {
[self xp_swizzing_display];
}
}
@end