Ios-tabview Learning

Source: Internet
Author: User

Summary

Because the tutorial is looking at the previous, and Xcode seems to change quite large, so directly in accordance with the tutorial changes can not ah, so oneself in Xcode6.1 groping a, finally is to write a tabview example. The main difficulty is that Xcode editing multi-view when the old feeling that the editing interface is not enough to hide the file View Bar, property view bar, really faint sadness. And then when you create a third view, instead of creating a new XI file, you drag a Viewcontoller control inside the Main.storyboard and then assign the controller to the control and connect to Tabviewcontoller, which is basically done.

Design drawings in IB (partial)

Because I do not know how to narrow the view of the IB, and the view is large, so it is only part of the cut. (I don't know if there is any way to modify the IB view size)


Interface Modification

1. Add an attempt to control the class by adding a new view first

2. Click the left-most view control icon on the top of the new view, and modify the corresponding class to the 1th step of the control

3. Click the Attempt control icon in the 2nd step, pull a line from the relation in his property connection to the root attempt controller (TAB Bar Controller)

4. Three steps on the ground has finished creating a new view to the Tab Bar controller, as soon as you modify the corresponding view


run the result diagram


code slightly

Ios-tabview Learning

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.