Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

Problem performing a segue

Hello. I am currently making a Todolist application. There is an introduction view controller and a Todo main page view controller. The intro goes first when the user first opens the application, and if the user opens it for the second time, it won't show the intro. I have already used NSUserDefaults to store the information about is it the first time or not, but when I perform the segue from the Intro to the Main page, it doesn't work, it is still in the intro view. Can someone help me, or give me a possible reason why it doesn't work? Thanks a lot!

1 Answer

What function are you using to check if the user has viewed it before or not? E.g. viewDidLoad...update??