mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-14 13:42:50 -06:00
moved old ios-swift files to the subdirectory src/ui/ios/old-swift
This commit is contained in:
24
src/ui/ios/old-swift/gf-ios-swift/HelpViewController.swift
Normal file
24
src/ui/ios/old-swift/gf-ios-swift/HelpViewController.swift
Normal file
@@ -0,0 +1,24 @@
|
||||
import UIKit
|
||||
|
||||
// The HelpViewController only contains static text and a back button
|
||||
class HelpViewController: UIViewController {
|
||||
|
||||
@IBOutlet weak var helpView: UIWebView!
|
||||
|
||||
// Closes the view when the back button is blicked
|
||||
@IBAction func backToMain(sender: UIButton) {
|
||||
dismissViewControllerAnimated(true, completion: nil)
|
||||
}
|
||||
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
|
||||
// Sets the HTML for the UIWebView
|
||||
self.helpView.loadHTMLString("<html><body><h1>HTML goes here</h1></body></html>", baseURL: nil)
|
||||
}
|
||||
|
||||
override func didReceiveMemoryWarning() {
|
||||
super.didReceiveMemoryWarning()
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user