M
M
malike2015-03-26 19:11:35
Apple Xcode
malike, 2015-03-26 19:11:35

How to organize interaction between the browser component and the site in xcode?

We created an application, marked up a web view in it, asked it to open a specific site, how to make it so that when a button is pressed on the site, an action is performed inside the xcode application.
An example from QT: there is a QWebChannel class that, by raising a websocket server inside a QT application and a special JavaScript library that is built into the site and sends commands via the QT websocket protocol to the application, provides the necessary interaction. How to do something like this in xcode?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
An, 2015-03-27
@malike

If you are developing an iOS 8 only application, then you need to look at WKWebView. Injecting Behavior with User Scripts . I’ll make a reservation right away, I haven’t tried it myself ...
If < iOS 8
stackoverflow.com/questions/9473582/ios-javascript...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question