summaryrefslogtreecommitdiff
path: root/src/ui/ios/gf-ios-swift/HelpViewController.swift
diff options
context:
space:
mode:
authorjoel.hinz <joel.hinz@gmail.com>2015-02-20 07:47:43 +0000
committerjoel.hinz <joel.hinz@gmail.com>2015-02-20 07:47:43 +0000
commit2394763daaedab05fe3fa35635317dfaca7092bf (patch)
treeb3de50a3af5d344f74fb0545ce9931b285277166 /src/ui/ios/gf-ios-swift/HelpViewController.swift
parentf848857519bfb093310503108ff62297ea9f8a24 (diff)
translation app for iOS, replicating some of the functionality of the Android app. Compiles and works on iPad retina but may crash and has known issues.
Diffstat (limited to 'src/ui/ios/gf-ios-swift/HelpViewController.swift')
-rw-r--r--src/ui/ios/gf-ios-swift/HelpViewController.swift24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/ui/ios/gf-ios-swift/HelpViewController.swift b/src/ui/ios/gf-ios-swift/HelpViewController.swift
new file mode 100644
index 000000000..7f924bcd4
--- /dev/null
+++ b/src/ui/ios/gf-ios-swift/HelpViewController.swift
@@ -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()
+ }
+
+}