Creating ClientListViewController
Now we will move on to the user interface design and demonstrate how we set up the link between our presenters. Developing the user interface is no different to developing natively for iOS and Android; the only difference with MVP is that we initialize a view with its related presenter in the constructor.
Let's start by adding a new folder to the Chat.iOS
project called Views
, add in a new file called ClientsListViewController.cs
, and implement the following:
public class ClientsListViewController : UIViewController, ClientsListPresenter.IClientsListView { #region Private Properties private UITableView _tableView; private ClientsTableSource _source; private ClientsListPresenter _presenter; private UIActivityIndicatorView _activityIndicatorView; #endregion #region Constructors public ClientsListViewController(ClientsListPresenter presenter...