Book Image

iOS Development with Xamarin Cookbook

By : Dimitrios Tavlikos (USD)
Book Image

iOS Development with Xamarin Cookbook

By: Dimitrios Tavlikos (USD)

Overview of this book

Table of Contents (22 chapters)
iOS Development with Xamarin Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

iPad view controllers


All the controllers we have worked with so far can be used in both iPhone and iPad applications. There are, however, two controllers that are only available to the iPad. These are the UISplitViewController and UIPopoverController classes. In this recipe, we will create an iPad project that uses the UISplitViewController class.

Getting ready

Create a new iPad Empty Project and name it SplitControllerApp.

How to do it…

Perform the following steps to complete this recipe:

  1. Add two iPad view controllers to the project and name them FirstController and SecondController. Set the background colors of their views to different colors, for example, blue for FirstController and yellow for SecondController.

  2. Open SecondController.xib in Interface Builder and add UIToolbar close to the top of its view. Connect the toolbar to an outlet named myToolbar.

  3. By default, the properties that represent the outlets are created as private by Xamarin Studio. Add the following property in the SecondController...