Check this code
Storyboard ---UIViewController1 ---UIViewController2
---UIViewController1 contain a button on press call ---UIViewController2 and in ---UIViewController2 i need to open EasyJSwebviewSample code
Reference code - https://github.com/dukeland/EasyJSWebViewSample/blob/master/EasyJSWebViewSample/MyJSInterface.m