Как я могу использовать панель кнопок для сохранения данных в основных данных формы Eureka - PullRequest
0 голосов
/ 04 апреля 2020

Мне удается сохранить эти данные только с помощью "ButtonRow". Могу ли я использовать BarButtonItem?

override func viewDidLoad() {
    super.viewDidLoad()

    let appDelegate = UIApplication.shared.delegate as! AppDelegate
    context = appDelegate.persistentContainer.viewContext

    form +++ Section()

        <<< TextRow("manufacturer"){
            $0.title = ""
            $0.value = ""
            $0.placeholder = "Type the name of the manufacturer"
        }

        +++ Section()

        <<< ButtonRow() {
            $0.title = "Save"
            $0.onCellSelection(self.buttonTapped)
        }

}

Best, Ricardo

...