Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protocol RegistrationFormViewControllerDelegate: class {
- func saveDataButtonTapped()
- }
- weak var myAccountDelegate: RegistrationFormViewControllerDelegate?
- @IBAction func saveButtonTapped(_ sender: UIBarButtonItem) {
- myAccountDelegate?.saveDataButtonTapped()
- print("b")
- }
- let storyboard = UIStoryboard(name: GlobalConsts.registrationFormsStoryboardName, bundle: Bundle.main)
- if let rootVC = storyboard.instantiateViewController(withIdentifier: "RegistrationFormRootViewController") as? RegistrationFormRootViewController {
- rootVC.myAccountDelegate = self
- }
- extension PaymentRegistrationFormViewController: RegistrationFormViewControllerDelegate {
- func saveDataButtonTapped() {
- print("a")
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement