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 trialchase cochran
1,103 PointsWhat am i doing wrong? OBJ - C properties
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface Playlist : NSObject;
@property (strong, nonatomic) NSString *playlistTitle;
@property (strong, nonatomic) NSString *playlistDescription;
@property (strong, nonatomic) UIImage *playlistIcon;
@property (strong, nonatomic) UIImage *playlistIconLarge;
@property (strong, nonatomic) UIColor *backgroundColor;
@property (strong, nonatomic) NSArray *playlistArtists;
- (instancetype)initWithIndex:(NSUInteger)index;
@end
this is my code and Xcode continually tells me i need a ';' at the end of an expression/declaration. I don't see what I'm missing
1 Answer
Preston Skaggs
11,818 PointsIt's a little difficult to read your code there, but you can omit the semi-colon (;) after your @interface declaration. Also, the method declaration should begin with a dash (-).
Sai Kiran Dasika
Courses Plus Student 7,278 PointsSai Kiran Dasika
Courses Plus Student 7,278 PointsYes what you said is correct. He has to remove the semicolon in the interface declaration. Btw Xcode will notify you if you have a syntax error.