O'Reilly logo

Xamarin 4.x Cross-Platform Application Development - Third Edition by Jonathan Peppers

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding a friends list screen

The next screen we need for our XamSnap app is our friends list. When creating a new conversation, the app will load a list of friends to start a conversation with. We'll follow a very similar pattern to load our list of conversations.

To begin, we'll create UIBarButtonItem, which navigates to a new controller named FriendsController, by performing the following steps:

  1. Double-click on the Main.storyboard file to open it in the iOS designer.
  2. Add a new Table View Controller to the storyboard.
  3. Select your view controller, click on the Properties pane and make sure you have selected the Widget tab.
  4. Enter FriendsController into the Class field.
  5. Scroll down to the View Controller section and enter Friends in the Title field.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required