0
 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()
4

0 回答 0