遷移元のViewControllerから遷移先のViewControllerに、値を渡したいのですが、やり方がわかりません。
以下のコードで画面遷移はできるようになっています。
let second = SecondViewController() presentedSize = second.view.frame.size second.modalPresentationStyle = .custom second.transitioningDelegate = self self.present(second, animated: true, completion: nil)
segueを使っての値の渡しかたは調べると出てくるのですが、presentを使った時の値の受け渡しがわかりません。
どなたかご教授願いますでしょうか。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。