I have two error : No visible @interface for 'UIWebview'

后端 未结 1 1518
北恋
北恋 2021-01-22 00:33

I have two error :No visible @interface for \'UIWebView\' declares the selector \'highlightAllOccurencesOfString:\'

another one:No visible @interface for \'UIWebView\' d

1条回答
  •  一整个雨季
    2021-01-22 01:03

    U have subclassed uiwebview and called it SearchWebView but then when you create an instance of web view in your wbsecondviewcontroller, you use a regular web view instead of the subclass that you created and the regular web view does not have the two extra methods that you defined for that custom one. Above @interface in the wbsecondviewcontroller.h do @class SearchWebView. Then where you declare the property UiWebView, declare it as a SearchWebView instead. In the .m file of the wbsecondviewcontroller do #import "SearchWebView.h"

    0 讨论(0)
提交回复
热议问题