Skip to content

Commit

Permalink
WebActionDisablingCALayerDelegate 私有 API,要被拒
Browse files Browse the repository at this point in the history
  • Loading branch information
王原闯 authored and Easeeeeeeeee committed Mar 1, 2018
1 parent 8af37a3 commit 863969c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion CodingMart/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>4.1.201802281200</string>
<string>4.1.201803011600</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSApplicationQueriesSchemes</key>
Expand Down
22 changes: 11 additions & 11 deletions CodingMart/Util/Category/UIWebView+Common.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@

@implementation UIWebView (Common)

+ (void)load{
Class class = NSClassFromString(@"WebActionDisablingCALayerDelegate");
SEL willBeRemoved = NSSelectorFromString(@"willBeRemoved");
SEL removeFromSuperview = NSSelectorFromString(@"removeFromSuperview");
class_addMethod(class, willBeRemoved, (IMP)emptyMethod, nil);
class_addMethod(class, removeFromSuperview, (IMP)emptyMethod, nil);
}
//+ (void)load{
// Class class = NSClassFromString(@"WebActionDisablingCALayerDelegate");
//
// SEL willBeRemoved = NSSelectorFromString(@"willBeRemoved");
// SEL removeFromSuperview = NSSelectorFromString(@"removeFromSuperview");
//
// class_addMethod(class, willBeRemoved, (IMP)emptyMethod, nil);
// class_addMethod(class, removeFromSuperview, (IMP)emptyMethod, nil);
//}

void emptyMethod(id self, SEL _cmd){
}
//void emptyMethod(id self, SEL _cmd){
//}

@end

0 comments on commit 863969c

Please sign in to comment.