HomeScreen - Ben-Stacey/COSC345 Wiki

HomeScreen

View Controller for the Home Screen

public class HomeScreen: UIViewController 

Inheritance

UIViewController

Properties

welcomeLabel

@IBOutlet public weak var welcomeLabel: UILabel!

Methods

viewDidLoad()

Loads the View Controller

public override func viewDidLoad() 

viewWillAppear(_:)

Removes the back button from the top of the view controller

public override func viewWillAppear(_ animated: Bool) 

Parameters

  • animates: [in] gives the bool for the animation on the view controller

getXp()

public class func getXp() -> Int 

increaseXp(amount:)

public class func increaseXp(amount: Int)