4

I'm using Swift.

When my app is opened for the first time, I want it to go to the WelcomeController. However, now that the app has been launched once, I want the app to launch on a different view controller.

How can I do this?

1

1 Answer 1

0

The commented question from 68cherries details the mechanics of how to go to a specific view controller when the app launches. As to how to determine whether or not to show the WelcomeController or another one, I'd suggest storing a boolean flag in NSUerDefaults once the WelcomeController has been viewed. Then the next time the app starts, you can check if that flag is true and if so show the other controller instead.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.