Skip to content

JSInterface() class in webView?? #3

Description

I'm a korea understand English is poor. :)

JSInterface class in..

func sayGreeting(_ message: String, _ name: String)
    {
        webView?.stringByEvaluatingJavaScript(from: "javascriptFunction(msg);")
    }

ViewController

@IBOutlet weak var webView: UIWebView!

How do I use the webView declared as a property in the sayGreeting method?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions