The way I do this will use a block event handler. In your MTPurchasedCartItemCell class MTPurchasedCartItemCell add the property to the header file as follows:
@property (nonatomic, copy) void (^tapHandler)(id sender);
And in the implementation file you can do this:
- (IBAction)onShareTap:(id)sender { if (self.tapHandler) { tapHandler(sender); } }
And finally, in your controller class, do something like this in cellForRowAtIndexPath: ::
... cell.tapHandler = ^(id sender) {
source share