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.
Perform the following steps to complete this recipe:
Add two iPad view controllers to the project and name them
FirstController
andSecondController
. Set the background colors of their views to different colors, for example, blue forFirstController
and yellow forSecondController
.Open
SecondController.xib
in Interface Builder and addUIToolbar
close to the top of its view. Connect the toolbar to an outlet namedmyToolbar
.By default, the properties that represent the outlets are created as private by Xamarin Studio. Add the following property in the
SecondController...