I am using Swift to build an iOS application and would like to change the global appearance of UIBarButtonItem. I am doing this in didFinishLaunchingWithOptions.
Apple's documentation says this:
func setTitleTextAttributes(_ attributes: [String : AnyObject]?, forState state: UIControlState)
for UIBarItem. But when I try to do this, it only expects self: UIBarItem. Has anyone else encountered this? Is it a bug in Xcode or am I doing something wrong?