When I add a UIToolBar, it appears to be transparent. However, I do not want this to happen. Here is my code:
var done = UIBarButtonItem(barButtonSystemItem: UIBarButtonSystemItem.Done, target: self, action: Selector("done"))
if let font = UIFont(name: "Avenir", size: 17.0) {
done.setTitleTextAttributes([NSFontAttributeName: font], forState: .Normal)
}
toolBar.items = [done]
toolBar.barStyle = UIBarStyle.Default
self.birthdayTextField.inputAccessoryView = toolBar
Am I doing anything wrong?