I have two error :No visible @interface for \'UIWebView\' declares the selector \'highlightAllOccurencesOfString:\'
another one:No visible @interface for \'UIWebView\' d
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"