summaryrefslogtreecommitdiff
path: root/src/ui/ios/old-swift/gf-ios-swift/HelpViewController.swift
blob: 7f924bcd44446cb151d14f78328c9d948a397a6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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()
    }

}