0
これは私のコードです 私の問題は、didTapVoteButton2関数のpollText1ButtonとdidTapVoteButton関数のpollText2Buttonにアクセスする必要があることです。すぐに他の関数から関数のパラメータにアクセスする方法
(あなたは私の問題に対する別の解決策を提供するために、私はこの記事ののカットコードを参照する必要がある場合、私は、同様のことを提供することができます)
すべてのヘルプは大歓迎です!
拡張HomeViewController:YourPollsCellDelegate {
func didTapVoteButton2(_ pollText2Button: UIButton, pollNum: Int, cell: YourPollsCell) {
// code
}
func didTapVoteButton(_ pollText1Button: UIButton, pollNum: Int, cell: YourPollsCell) {
// code
}
これ以上コードを投稿する必要があります。 – ryantxr