iOS Build a Simple iPhone App with Objective-C Creating a Data Model Creating a Data Collection

Nick Frozz
Nick Frozz
31,289 Points

What am I doing wrong?

1/3.

We're going grocery shopping and we need an array of grocery items to buy. Declare a property named 'shoppingList'. Make it an NSArray and use the modifiers 'nonatomic' and 'strong'.

ViewController.h
#import "UIViewController.h"

@interface ViewController : UIViewController

@property (strong, nonatomic) NSString *shoppingCart;
@property (strong, nonatomic) NSArray *shoppingList;
@end
ViewController.m
#import "ViewController.h"

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    // Add your code below!
}

@end