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 Self-Destructing Message iPhone App Designing and Starting the App A Storyboard with a Tab Bar Controller

Should this Challenge Be implemented in work code?

Im not sure where to implement this challenge into my code, even tho there is a marker that saying that i should.

Also where could i find the correct answer to these questions.

1 Answer

Stone Preston
Stone Preston
42,016 Points

You complete challenges in the browser. You dont need to add anything to your code in Xcode. The challenges are standalone programs. Treehouse does not provide answers to the challenge anywhere. (although you may be able to find them on the forums (although id advise figuring it out on on your own rather than copying and pasting it just to pass it.)

You need to add the code below the comment that says

// Add your code below! The property for MainViewController's 
// tab bar controller is named 'tabBarController'.

you need to add one line of code that sets the selectedIndex of your tabBarController. (hint: use self.tabBarController)