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 trialTristan Gaebler
6,204 PointsExtra credit crystal ball
I'm really confused. The extra credit is to make the CrystalBall method work without the @property. I just erased the @property and it still works. Is it me or is this just to simple to be good.
2 Answers
Tristan Gaebler
6,204 Points//
// TGCrystalBall.h
// CrystalBall
//
// Created by Tristan Gaebler on 9/2/14.
// Copyright (c) 2014 TristanGaebler. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface TGCrystalBall : NSObject {
NSArray *_predictions;
}
//This is where the @property was
-(NSString *) randomPrediction;
@end
Stephen Whitfield
16,771 PointsWithout which @property?
Tristan Gaebler
6,204 PointsI think it was the @property (strong, nonatomic) NSArray *predictions;
Stephen Whitfield
16,771 PointsCould you paste a code sample to show what you have?
Stephen Whitfield
16,771 PointsStephen Whitfield
16,771 PointsYep. You just replace the "predictions" property with the _predictions ivar and that's it!
Tristan Gaebler
6,204 PointsTristan Gaebler
6,204 PointsThanks