Building the iOS ChatView
Add a new file called ChatViewController
into the Views
project of the Chat.iOS
project and implement the following:
public class ChatViewController : UIViewController, ChatPresenter.IChatView { #region Private Properties private ChatPresenter _presenter; private UITextField _chatField; private UIScrollView _scrollView; private int _currentTop = 20; private nfloat _width; #endregion #region Constructors public ChatViewController(ChatPresenter presenter) { _presenter = presenter; } #endregion }
We have multiple Private
properties, one for the presenter, a local UITextField
. We need this UI object to be local, as we need to extract the Text
value to send through the SignalRClient
, and we also need the UIScrollView
to be ...
Get Xamarin Blueprints now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.