numberToolbar.items=[
UIBarButtonItem(image:UIImage(named: "icKeyboardArrowUp"), style: UIBarButtonItem.Style.plain, target: self, action: #selector(ViewController.traverseUp)),
UIBarButtonItem(image:UIImage(named: "icKeyboardArrowDown") , style: UIBarButtonItem.Style.plain, target: self, action: #selector(ViewController.traverseDown)),
UIBarButtonItem(barButtonSystemItem: UIBarButtonItem.SystemItem.flexibleSpace, target: self, action: nil),
UIBarButtonItem(title: "Done", style: UIBarButtonItem.Style.plain, target: self, action: #selector(ViewController.donePressed))
]
numberToolbar.sizeToFit()
Asked
Active
Viewed 15 times
0
-
Please detail what you want with desired output – EdChum Apr 03 '19 at 13:07
-
I want to change cell border color from gray to black when textfield inside the cell is pressed. Once the keyboard comes up, added buttons i.e., icKeyboardArrowUp and icKeyboardArrowDown can be used to change focus of the cell up and down depending on buttons pressed. – anan Apr 04 '19 at 15:21