Как перемещаться по ячейкам вверх, вниз добавлены стрелки на панели инструментов numpad в UITableView? - PullRequest
0 голосов
/ 03 апреля 2019
 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()
...