Can I pass delegate as a parameter objective-c Can I pass delegate as a parameter objective-c objective-c objective-c

Can I pass delegate as a parameter objective-c


Just create the appropriate init method that passes in the delegate.

- (id)initWithItemID:(NSString *)itemID  withManufacturerID:(NSString *)manufacturerID       withReurnType:(NSInteger)type            delegate:(id<YourDelegate>)theDelegate{    self = [super init];    if (self)    {        .... // Other assignments        self.delegate = theDelegate;    }    return self;}