7
7
8
8
#import " Loader.h"
9
9
#import < objc/runtime.h>
10
- @import UIKit;
11
10
12
11
@implementation Loader
13
12
@@ -26,7 +25,7 @@ + (void)load_uiviewController_viewstate {
26
25
SEL sel = @selector (XUI_load_uiviewController_viewstate );
27
26
#pragma clang diagnostic pop
28
27
29
- Class cls = UIViewController. class ;
28
+ Class cls = NSClassFromString ( @" UIViewController" ) ;
30
29
Method method = class_getClassMethod (cls, sel);
31
30
if (method != NULL ) {
32
31
IMP imp = method_getImplementation (method);
@@ -41,7 +40,7 @@ + (void)load_uiviewController_viewsizetransition {
41
40
SEL sel = @selector (XUI_load_uiviewController_viewsizetransition );
42
41
#pragma clang diagnostic pop
43
42
44
- Class cls = UIViewController. class ;
43
+ Class cls = NSClassFromString ( @" UIViewController" ) ;
45
44
Method method = class_getClassMethod (cls, sel);
46
45
if (method != NULL ) {
47
46
IMP imp = method_getImplementation (method);
@@ -57,7 +56,7 @@ + (void)load_uicontrol_selectable {
57
56
SEL sel = @selector (XUI_load_uicontrol_selectable );
58
57
#pragma clang diagnostic pop
59
58
60
- Class cls = UIControl. class ;
59
+ Class cls = NSClassFromString ( @" UIControl" ) ;
61
60
Method method = class_getClassMethod (cls, sel);
62
61
if (method != NULL ) {
63
62
IMP imp = method_getImplementation (method);
@@ -72,7 +71,7 @@ + (void)load_uibaritem_viewhook {
72
71
SEL sel = @selector (XUI_load_uibaritem_viewhook );
73
72
#pragma clang diagnostic pop
74
73
75
- Class cls = UIBarItem. class ;
74
+ Class cls = NSClassFromString ( @" UIBarItem" ) ;
76
75
Method method = class_getClassMethod (cls, sel);
77
76
if (method != NULL ) {
78
77
IMP imp = method_getImplementation (method);
@@ -87,7 +86,7 @@ + (void)load_uiview_safeareainsetspublisher {
87
86
SEL sel = @selector (XUI_load_uiview_safeareainsetspublisher );
88
87
#pragma clang diagnostic pop
89
88
90
- Class cls = UIView. class ;
89
+ Class cls = NSClassFromString ( @" UIView" ) ;
91
90
Method method = class_getClassMethod (cls, sel);
92
91
if (method != NULL ) {
93
92
IMP imp = method_getImplementation (method);
0 commit comments