Eurekaの例に示すように、次のように独自のViewControllerをプッシュまたは表示できます。
<<< ButtonRow("Rows") {
$0.title = $0.tag
$0.presentationMode = .segueName(segueName: "RowsExampleViewControllerSegue", onDismiss: nil)
}
またはこのような.onCellSelectionクロージャーによって:
<<< LabelRow () {
$0.title = "LabelRow"
$0.value = "tap the row"
}
.onCellSelection { cell, row in
self.performSegue(withIdentifier: "yourSegue", sender: self)
}
これがお役に立てば幸いです。
<<< ButtonRow("Name and Surname") { (row: ButtonRow) -> Void in
row.title = row.tag
row.presentationMode = .show(controllerProvider: ControllerProvider.callback(builder: { _ in return NameAndSurnameController() }),
onDismiss: nil
)
}
これを閉じて、あなたの答えをみんなに感謝します!
最も参考になるコメント
Eurekaの例に示すように、次のように独自のViewControllerをプッシュまたは表示できます。
またはこのような.onCellSelectionクロージャーによって:
これがお役に立てば幸いです。