Last active
August 29, 2015 14:15
-
-
Save acallaghan/f9529ec4252a8bbb0579 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ViewController.swift | |
| import UIKit | |
| import WebKit | |
| class ViewController: UIViewController, WKNavigationDelegate { | |
| @IBOutlet var containerView: UIView! | |
| var webView: WKWebView? | |
| override func loadView() { | |
| super.loadView() | |
| self.webView = WKWebView(frame: self.view.frame) | |
| self.view = self.webView | |
| } | |
| override func viewDidLoad() { | |
| super.viewDidLoad() | |
| var url = NSURL(string: "https://jostensmobile.pixfizz.com/site/") | |
| var req = NSURLRequest(URL: url!) | |
| self.webView!.loadRequest(req) | |
| } | |
| override func didReceiveMemoryWarning() { | |
| super.didReceiveMemoryWarning() | |
| // Dispose of any resources that can be recreated. | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment