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?


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'.

#import "UIViewController.h"

@interface ViewController : UIViewController

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

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    // Add your code below!