I'm doing everything programmatically, and have no Storyboards. I'm using Swift2.0 and I'm a beginner. My app structure is very simple:
In my AppDelegate, I am initializing a UINavigationController
and a ViewController, and adding my ViewController to my navigationController.
In my ViewController, loadView()
method, I initialize my view: self.view = myView()
And so now I'm in myView class, where I'm trying to build my view (making 4 buttons, adding constraints). Now when I want to make my buttons, I need to know the navigationController's navigationBar size (height).
How can I access this from my View class? What is the best way to do this?
Thank you.