I have a subclass of UIViewController that allows the user to add a new model object, in this case a bank account. I called the AddBankAccountViewController view controller. The user can enter the account number, account label and account bank, but all this is done in separate view controllers.
I use delegation to let AddBankAccountViewController know that the user has changed values. As a result, AddBankAccountViewController now complies with 3 custom protocols (e.g. EditAccountNumberViewControllerDelegate, etc.), and this may be even more in the future.
My question is: is this done correctly, or is there a better way (e.g. direct link from view controllers to AddBankAccountViewController)?
source
share