I am trying to run a vimeo video in my app, and the method that makes the most sense to me is the method from this example [ https://stackoverflow.com/a/15918011/4856759 ].
So I have attempted to recreate this method in swift with my own vimeo link, but all I get is a blank screen.
As far as I can tell I have created the relevant string, converted it an NSString and loaded it using the loadHTMLString method - what am I missing?
@IBOutlet weak var webView: UIWebView!
override func viewDidLoad() {
super.viewDidLoad()
var embedHTML = "<iframe width=\"300\" height=\"250\" src=\"http://www.vimeo.com/113067409" frameborder=\"0\" allowfullscreen></iframe>"
var html: NSString = NSString(string: embedHTML)
webView.loadHTMLString(html, baseURL: nil)
}