Switch between iOS boot interface and main interface

Source: Internet
Author: User

The first part of the preview part

The development tool used by the author is Apple's Xcode6.0.1, the simulator is iOS8.0. Doing this part of the work requires familiarity with the two UI controls: one is Uiscrollview and the other is Uipagecontrol. These two controls are often mixed together. (also have a certain UI operational basis)

The second part builds the file layout

The developed file layout is as follows:

As for the creation of documents in the project, this is no longer described in detail, please refer to the author's blog "XMPP Framework Import", which has detailed steps.

The third part is the construction of UI interface

A little hit of the Login.storyboard, into the inside dragged into a uinavgationcontroller, and then the right side of the table LAN controller Delete do not, drag a uiviewcontroller, The navigation controller is then used as the root controller of the Uiviewcontroller. Specific actions: Click the navigation controller, press and hold the control key on the computer keyboard, drag a line to Uiviewcontroller, and then pop up a session box, select Rootviewcontroller on the line. Session boxes such as:

Two click on the navigation controller and come to its property bar as the initialization controller:


You start dragging the control under three. Select Uiscrollview to overwrite the view of the entire controller. And then add the same Uipagecontrol,uibutton. special attention needs to be paid here!!!!!! The latter two controls are not added to the Uiscrollview, but are added to the controller's view, otherwise, the two controls will "disappear" with ScrollView's drag! ! The final control order is as follows:



Four control after the addition, is connected to let the controller has these two properties, here I do not say much, relatively simple. After the connection, the controller has properties such as:


Five then come to the file navigation bar:

-------Jump interface is as follows--------""

Six new Main.storyboard, drag the tag bar controller in,

Note: This also needs to check this box;

The UI interface is set up here, which omits some of the steps, and requires that you have the foundation of the UI interface, which is not the center of gravity, so it is not described in detail.


Part IV: Writing code

Don't want to say more, direct:

results of the fifth part






Switch between iOS boot interface and main interface

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.