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

Vaclav Mlejnsky
Vaclav Mlejnsky
6,832 Points

Stuck with code challenges

I really don't know what is wrong. These are last two pieces to complete my track. Take a look:

Code challenge 1: http://imgur.com/OxUH0vP Code challenge 2: http://imgur.com/KMhv3xN

2 Answers

did you try NSMutableArray * elements = [NSMutableArray array];

code challenge 1 try NSMutableArray *elements = @{};

code challenge 2 try

NSTimeInterval secondsTenDays = 60 * 60 * 24 * 10;
 NSDate *futureDate = [[NSDate alloc] init];
 futureDate = [NSDate dateWithTimeIntervalSinceNow:secondsTenDays];
Vaclav Mlejnsky
Vaclav Mlejnsky
6,832 Points

2nd challenge is now solved, thank you. I am still struggling with first though.

P.S.: I thought that you can initialize and alloc NSDate just with: "NSDate dateWithTimeIntervalSinceNow"