Eureka: プッシュまたは表示のいずれかの行をクリックしたときに、自分のView Controllerをどのように表示しますか?

作成日 2017年03月14日  ·  3コメント  ·  ソース: xmartlabs/Eureka

awaiting response question

最も参考になるコメント

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)
}

これがお役に立てば幸いです。

全てのコメント3件

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
                )
}

これを閉じて、あなたの答えをみんなに感謝します!

このページは役に立ちましたか?
0 / 5 - 0 評価

関連する問題

thlbaut picture thlbaut  ·  3コメント

s1rc picture s1rc  ·  3コメント

Tomas1405 picture Tomas1405  ·  3コメント

jaylyerly picture jaylyerly  ·  3コメント

Tomas1405 picture Tomas1405  ·  3コメント