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

#import "UIViewController.h"

@interface ViewController : UIViewController

@property (strong, nonatomic) NSString *shoppingCart;

#import "ViewController.h"

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    // Add your code below!