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

Best Practice For Waiting On Input

Hi, What would be the best way to pause the app (not in the background like you were switching apps) while waiting on the use to choose a selection. Here is what I'm trying to do (I'm a newbie) My app runs a function that put a math problem on the screen then waits for the use to select the correct answer which is tied to a button event. Then after the answer is choose the app would need to start the next function and so forth.

Any Ideas?

Thanks, Bryan K.

Not sure what exactly you mean here. I don't think you would necessarily do anything...

The view loads with math problem and awaits user input. You wouldn't need create a method to pause the app. The view just sits there waiting for the user to interact with a button that calls a method... like a BOOL to determine if the answer is correct, at which point it would progress to the next question.

If I'm understanding, please clarify.

Kevin, Your right. I was over thinking what needed to be done. Thanks