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