After a long time, I returned to this problem, but now I have completely rephrased the question using (hopefully) a better example.
I have an iview splitview app with accounts and contacts. Each account can have multiple contacts. In the main view, I show a list of accounts, and in the detailed view I show DialogView with data such as account number and address for the selected account. One line in DialogView is called “Contacts,” and when you click it, I want to show UIPopover with a list of all the contacts in the account.
But where can I create a popover?
My thinking is to allow the view to be AccountViewModel.ShowContactsCommand()called on its ViewModel, for example, Then the ViewModel calls ShowViewModel<ContactListViewModel>()and allows the Presenter to create a UIPopover.
But to create a UIPopover you need to give a UIView for the arrow. The present does not know about it.
Another alternative would be to create a popover from the view. This is not the case, but I would then gain access to the UIView that I need. I also don’t know how to create a new ContactListView here (the facilitator usually performs this task).
source
share