Thursday, February 25, 2010

Adding tabs to the tab bar view

When you select a new Cocoa Touch project from XCode, you can choose to begin with a Tab Bar Application. The template starts you with two views that comprise a two-tabbed GUI. To add another tab:

1. Create another XIB file.
2. Open MainWindow.xib in Interface Builder.
3. Drag a new View to the tab bar.
4. Click on the new tab.
5. Open Tools > Attributes Inspector.
6. In the NIB Name drop-down box, select the name of the XIB you created in step 1.

No comments:

Post a Comment