From 2394763daaedab05fe3fa35635317dfaca7092bf Mon Sep 17 00:00:00 2001 From: "joel.hinz" Date: Fri, 20 Feb 2015 07:47:43 +0000 Subject: 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. --- src/ui/ios/gf-ios-swift/HelpViewController.swift | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/ui/ios/gf-ios-swift/HelpViewController.swift (limited to 'src/ui/ios/gf-ios-swift/HelpViewController.swift') 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 goes here

", baseURL: nil) + } + + override func didReceiveMemoryWarning() { + super.didReceiveMemoryWarning() + } + +} -- cgit v1.2.3