iOS makes a nice start page

Source: Internet
Author: User

Here I take a picture of a page in a form to display the start of the example

The general effect is to talk about how to implement it in the following way:

    1. Place these images in the Xib

      Here I also set the tag values so that they can be displayed in the order of the tag values I set.

    2. Attach photos to these images because there are more pictures we use the loop processing will be better, the code is as follows:

Careful spectator must have found me in this cycle also do other things yes, I did the picture show this problem picture must be a display, here I set the picture display time interval is 0.1 seconds so every 0.1 seconds call Pictureappear This method how to implement it That is, the number of times the call is 0.1 is several times minus one.

The Pictureappear code is as follows:

3. After the display of the picture has been done, of course, the start page is given to Appdelegate

The code is as follows

Create a window to create a startup page controller and then give the Controller to the window's root view Controller

4. Finally, of course, to return to the original main interface pull

This is to take into account that the display of your picture takes time and then uses the deferred call, the code is as follows:

Here as you can see for me to get into the time not so blunt also made a small to large animation.

All right, that's all. Of course, here you can reduce the coupling. The specific code for the iterative method is as follows:

We are interested to study

Of course, don't forget to put the status bar to hide the effect will be better.

Start Page settings to what kind of style is everybody want to think of the problem pull here I'll go through a simple example of how to join the startup page.

iOS makes a nice start page

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.