I know how delegates work, and I know how I can use them.
But how do I create them?
Delegate :- Create
@protocol addToCartDelegate -(void)addToCartAction:(ItemsModel *)itemsModel isAdded:(BOOL)added; @end
Send and please assign delegate to view you are sending data
[self.delegate addToCartAction:itemsModel isAdded:YES];