I'm creating a custom UIView subclass (shareView) from a Nib. I created a custom protocol for shareView like this:
@protocol sharePopupDelegate
@required
-(void)userPublishedContent;
-(void)userAbortedPublish;
@end
@interface shareView : UIView
{
id<sharePopupDelegate> delegate;
}
In my main.storyboard I created a custom UIViewController myViewController with a shareView view instance called "popup" inside.
So now I got
@property (weak, nonatomic) IBOutlet shareView *popup;
I would like now to delegate myViewController from shareView methods i declared, so I did
self.popup.delegate = self;
inside myViewController but the protocols' methods are not being called inside myViewController.
So i correctly see the shareView instance but cannot interface to its delegate.
Can you help me please?
Thanks in advance