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

Mohammed Istiaq Ullah
Mohammed Istiaq Ullah
2,399 Points

confused with why self is needed while extracting value from arrays or etc

i'm just still confused as to why self is required

ViewController.h
#import "UIViewController.h"

@interface ViewController : UIViewController

@property (strong, nonatomic) NSString *shoppingCart;

@end
ViewController.m
#import "ViewController.h"

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    // Add your code below!
}

@end