Tabbar controller, navigation controller (1) for iOS 5 storyboard Learning)

Source: Internet
Author: User

1. Create a project and name it at will.

2. Click "mainstoryboard. storyboard" and place a "tab bar controller" from "Object Library:

3. Click "tab bar controller" and select "is initial view controller" in "attributes inspector ":

Then we can see an arrow on the right of "tab bar controller ".

4. Delete "view controllers-item 1" in the preceding section, and place a "Table View Controller" in.

5. Click "Table View Controller" and select "Editor"> "embed in"> "navigation controller" in the menu bar. Of course, you can also add "navigation controller" from "Object Library". The functions are the same:

6. Rebuild the relationship between "Table View Controller" and "navigation controller ".

7. Next we will make some adjustments.

7.1 first go to the rightmost "Table View" and click the header to change the name to "Player".

7.2 modify the name Item1 of the tab bar to "players" and item2 to "gestures".

8. Solve the error. We will receive such a reminder.

Solution: Set style to subtitle and identifier to playercell.

Then the error disappears.

9 so far, we have completed most of storyboard's work and will perform coding next time. If there is no error above, the current result should be as follows:

-- EOF --

Navigationcontroller, storyboard, tabbar Author: buro # 79xxd Source: http://www.cnblogs.com/buro79xxd/ Article copyright owned by me, welcome to reprint, but without the author's consent must retain this paragraph statement, the original Article connection is clearly provided on the Article Page, otherwise the right to pursue legal liability will be reserved.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.