Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. webView.evaluateJavaScript(javascript) { res, err in
  2. let isSuccessToApply: Bool = (res as? Bool) ?? false
  3.  
  4. //let json = try? JSONSerialization.jsonObject(with: res, options: []) as? [String: Any]
  5. print("Javascripted executed \(isSuccessToApply)")
  6. print("Javascript Res \(res)")
  7.  
  8. // print(NSString(res.?name))
  9.  
  10. //for element in res {
  11. // print(element)
  12. //}
  13.  
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement