How to supress a warning on the line on Objective-C compiler?
...
[[UIWebDocumentView class] jr_swizzleMethod:@selector(canPerformAction:withSender:) withMethod:@selector(myCanPerformAction:withSender:) error:nil]; // warning here
...
NSObject has this method (as category). But compiler thinks that UIWebDocumentView doesn't. This is a compiller's issue. Is there any directive to suppress warnings on a block of the code?
The warning:
Receiver 'UIWebDocumentView' is a forward class and corresponding @interface may not exist
P.S. UIWebDocumentView
is a private API - so can't use performSelector
method tu supress the warning.