Commit 8dde4e7f authored by Jidong Chen's avatar Jidong Chen Committed by 福居

Code opt

parent 246090f6
......@@ -29,21 +29,23 @@
@end
@implementation FLBFlutterViewControllerAdaptor
- (instancetype)init
{
if (self = [super init]) {
Class class = [self class];
SEL originalSelector = @selector(onAccessibilityStatusChanged:);
SEL swizzledSelector = @selector(fixed_onAccessibilityStatusChanged:);
Method originalMethod = class_getInstanceMethod(class, originalSelector);
Method swizzledMethod = class_getInstanceMethod(class, swizzledSelector);
method_exchangeImplementations(originalMethod, swizzledMethod);
}
return self;
}
- (void)viewDidLoad {
[super viewDidLoad];
Class class = [self class];
SEL originalSelector = @selector(onAccessibilityStatusChanged:);
SEL swizzledSelector = @selector(fixed_onAccessibilityStatusChanged:);
Method originalMethod = class_getInstanceMethod(class, originalSelector);
Method swizzledMethod = class_getInstanceMethod(class, swizzledSelector);
method_exchangeImplementations(originalMethod, swizzledMethod);
self.view.backgroundColor = [UIColor whiteColor];
// Do any additional setup after loading the view.
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment