Full Decent Full Decent - 1 year ago 110
iOS Question

IOS swipable welcome screen

Some iOS apps come with a welcome screen that allows you to swipe through several pages and then lets you use the app. Usually they include a page control at the bottom to show progress of viewing the pages.

Is there a popular or standard library that is providing this functionality?

enter image description here

See also:

Answer Source

Its quite simple,

  1. Create a ViewController named WelcomeScreenViewController

  2. Then setup UIPageControl and UIScrollView on the XIB, and load all the welcome images.

  3. Handle UIScrollView delegate methods, and determine that you scrolled to the last page.

  4. When you reach last page, hide the whole pagecontrol, and scrollview and show a Welcome Screen with Start option.

  5. On touching start option, change the window.rootViewController to your actual Home screen. And too save in UserDefaults that you have shown the Welcome Screen.

Initially your window.rootViewController should be WelcomeScreen if you haven't shown it before.

The above should be the logic to implement what you are looking for.

Hope it helps.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download