In xcode 6.1, how do i programmatically change the title of the window created by storyboard? This project is for OS X. By default, it is "Window". I am using OBJ C.
Code in Swift is
override func viewDidAppear() {
self.view.window?.title = "joe"
}
and in Objective-C it's approximately self.view.window.title = @"joe";
It has to be in the viewDidAppear
because in the viewDidLoad
it's too early.
OT, but to do it via Storyboards it's here:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With