-
Book Overview & Buying
-
Table Of Contents
Xamarin 4.x Cross-Platform Application Development - Third Edition
By :
Now let's implement the screen to view a conversation or list of messages. We will try to model the screen on the built-in text message application in iOS. To do so, we will also cover the basics of how to create custom table view cells.
To start, we'll need a new MessagesController class; perform the following steps:
Double-click on the Main.storyboard file to open it in the iOS designer.
Add a new Table View Controller to the storyboard.
Select your view controller, click on the Properties pane and make sure you have selected the Widget tab.
Enter MessagesController into the Class field.
Scroll down to the View Controller section and enter Messages in the Title field.
Create a segue from ConversationsController to MessagesController by holding
Ctrl
and dragging the blue line from one controller to the other.
Select the Show segue from the pop up that appears. Enter the Identifier OnConversation in the Properties pane.
Now create two Table View Cells in the table view...
Change the font size
Change margin width
Change background colour