Changes

Jump to: navigation, search
m
Text replacement - "<table border="0" cellspacing="0">" to "<table border="0" cellspacing="0" width="100%">"
<googlehtmlet>BUY_IOS3ios9_upgrade</googlehtmlet>
== Creating the UITabBarController ==
<google>IOSBOX</google>
As previously mentioned, because we are designing a tab bar based multiview application it makes sense for us to the an instance of the UITabBarController class as the root controller. This is achieved from within ''MainWindow.xib'', so double click on this file to load it into Interface Builder. From within the Library window, click and drag a ''Tab Bar Controller'' object over to a blank area of the ''MainWindow.xib'' window. Once the object has been added the list of items in the ''MainWindow.xib'' window should appear as follows:
== Connecting the App Delegate Outlet to the Tab Bar Controller ==
<googlehtmlet>ADSDAQBOX_FLOWadsdaqbox_flow</googlehtmlet>
Earlier in this chapter we created an outlet for the root view controller in the App Delegate. In order to enable this we must connect it to the ''Tab Bar Controller'' instance we have created. From within the ''MainWindow.xib'' file hold down the Control key, click on the ''Tab Bar App Delegate'' icon and drag the resulting line to the ''Tab Bar Controller'' icon. From the resulting Outlets menu, select the ''tabController'' outlet.
<googlehtmlet>BUY_IOS3_BOTTOMios9_upgrade</googlehtmlet>

Navigation menu