how to intercept Button click inside UIWebview on IOS?

后端 未结 3 2039
忘了有多久
忘了有多久 2020-11-30 20:07

I have a HTML form that has certain fields which i am opening inside a UIWebview. On click of a particular button i want to do a in app action.

The approach i\'m usi

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-30 20:19

    This code:

    Restart
    

    doesn't work for me.

    I've added "inapp://capture" in my javascript code for event function

    KeyboardInputManager.prototype.restart = function (event) {
      window.location.href = "inapp://capture";
      //other code
    };
    

    Also I use the UIWebViewDelegate and It works for iOS 8, 9.

提交回复
热议问题