How to send events from HTML running inside a UIWebView to native Objective-C code?

前端 未结 4 1555
暖寄归人
暖寄归人 2021-02-04 14:44

I want to integrate a full HTML framework (ie HTML/CSS/JavaScript) inside an iOS app and make the UIWebView in charge of running the HTML content being able to communicate with

4条回答
  •  忘了有多久
    2021-02-04 15:21

    I just created a library that will do this for you. It supports two-way communication between your web app and iOS about through JSON, relying heavily on this method. Check it out: https://github.com/tcoulter/jockeyjs

提交回复
热议问题