How to Create Custom Delegate

// MyViewController.h: #import @protocol MyProtocolName; @interface MyViewController: UIViewController @property (nonatomic, weak) id delegate; @end @protocol MyProtocolName @required -(void)requiredDelegateMethod; @optional -(void)optionalDelegateMethodOne; -(void)optionalDelegateMethodTwo:(NSString *)withArgument; @end // end…