Skip to content

JSInterface() class in webView?? #3

@ghost

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?

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