UIWebView throwing exception for [WebActionDisablingCALayerDelegate setBeingRemoved:]

前端 未结 6 1955
清酒与你
清酒与你 2021-01-30 01:31

When running against iOS 8, I began to see the following exception coming from the deep bowels of UIWebView:

[WebActionDisablingCALayerDelega

6条回答
  •  灰色年华
    2021-01-30 02:06

    As none of the answers given could help me I had to resolve this issue with help of Objective-C runtime.

    First I've provided a simple function:

    id setBeingRemoved(id self, SEL selector, ...)
    {
       return nil;
    }
    

    Then these two lines:

        Class class = NSClassFromString(@"WebActionDisablingCALayerDelegate");
        class_addMethod(class, @selector(setBeingRemoved:), setBeingRemoved, NULL);
    

    And it works.

提交回复
热议问题