Created
April 5, 2018 06:06
-
-
Save 328/f61368d2f31743a3d40c48031f7938ef to your computer and use it in GitHub Desktop.
SFSafariViewControllerのテスト
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
import UIKit | |
import SafariServices | |
class ViewController: UIViewController { | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
} | |
override func viewDidAppear(_ animated: Bool) { | |
let webPage = "http://localhost:8080/refrects" | |
let safariVC = SFSafariViewController(url: NSURL(string: webPage)! as URL) | |
present(safariVC, animated: true, completion: nil) | |
} | |
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