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 Build a Simple iPhone App (iOS7) Testing and Debugging Debugging Basics

Debuging problem

my app now crashes when i tap the user interface to change the prediction label

1 Answer

Scott Evans
Scott Evans
4,236 Points

Does it highlight a breakpoint in xCode?

If so try stepping into the breakpoint to highlight the line of code that may be causing the crash. If this does not work, you could try adding a decent amount of NSLog("Example: executing getPrediction method") statements one before you execute any methods / instantiate any variables. This will help you to see where your apps gets to before it does actually crash.

Good luck fixing your issue!