This should be super straightforward. Here's what I am trying to do:
class ViewController: UIViewController{
var leftBarButton: UIButton;
var rightBarButton: UIButton;
override func viewDidLoad() {
super.viewDidLoad()
}
}
But I am getting an error that viewController has no initializers. I know I need to give the variables default values, so I tried:
var rightBarButton: UIButton(type: UIButtonType.System) as UIButton;
But that's giving me an error about multiple declarations.