[WebActionDisablingCALayerDelegate willBeRemoved]: unrecognized selector sent to instance
[WebActionDisablingCALayerDelegate removeFromSuperview]: unrecognized selector sent to instance
So I provided method in runtime,
+ (void)load{
Class class = NSClassFromString(@"WebActionDisablingCALayerDelegate");
SEL willBeRemoved = @selector(willBeRemoved);
class_addMethod(class, willBeRemoved, (IMP)willBeImplementation, nil);
}
void willBeImplementation(id self, SEL _cmd) {
}
While webkit call [WebActionDisablingCALayerDelegate willBeRemoved],
it was replaced by willBeImplementation.
where to provide this method in code
回覆刪除ref http://stackoverflow.com/questions/25894173/uiwebview-throwing-exception-for-webactiondisablingcalayerdelegate-setbeingremo
刪除