September 2016
Intermediate to advanced
516 pages
10h 22m
English
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 ...
Read now
Unlock full access