TheBestClockAboutScreenViewController
class TheBestClockAboutScreenViewController : UIViewController
This is a simple ViewController that manages the only other view controller in the app: The about box.
-
The size of the font we use for the URL button
Declaration
Swift
private let _urlButtonFontSize: CGFloat
-
This is the URI for the corporation. It is not localized.
Declaration
Swift
let corporateURI: String
-
This is the name of the corporation. It is not localized.
Declaration
Swift
let corporateName: String
-
The big logo that takes the user to the Web site
Declaration
Swift
@IBOutlet var logoImageControl: TheGreatRiftValleyDrawing!
-
The label for the version display
Declaration
Swift
@IBOutlet weak var versionLabel: UILabel!
-
The button for the corporate URL display
Declaration
Swift
@IBOutlet weak var theURLButton: UIButton!
-
The area where the long text is shown
Declaration
Swift
@IBOutlet weak var longTextTextarea: UITextView!
-
The base color for the display
Declaration
Swift
var baseColor: UIColor
-
The base font for the display
Declaration
Swift
var baseFont: UIFont!
-
This is called when the image is tapped, or the corporate name button is tapped.
We will call home via Safari.
Declaration
Swift
@IBAction func resolveURL(_: Any! = nil)
-
This is called when the user taps around the screen, closing the screen.
Declaration
Swift
@IBAction func dismissTapped(_: Any)
-
This is called just prior to appearing. The reason that we do much stuff here that would normally be done in viewDidLoad(), is because the prepare from the main controller is called after the load, and we need to use the data it gives us.
Declaration
Swift
override func viewWillAppear(_ inAnimated: Bool)
Parameters
inAnimated
We ignore this, and pass it up to the superclass.