Skip to content

Instantly share code, notes, and snippets.

@kennylugo
Created February 20, 2016 05:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kennylugo/10994cee3f29c7ae1119 to your computer and use it in GitHub Desktop.
Save kennylugo/10994cee3f29c7ae1119 to your computer and use it in GitHub Desktop.
UIwebView
//
// ViewController.swift
// thirdtableview
//
// Created by Kenny Batista on 2/19/16.
// Copyright © 2016 Kenny Batista. All rights reserved.
//
import UIKit
class ViewController: UIViewController {
@IBOutlet weak var webView: UIWebView!
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
let url = NSURL(string: "http://www.google.com");
let requestObj = NSURLRequest(URL: url!)
webView.loadRequest(requestObj)
}
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