I know how delegates work, and I know how I can use them.
But how do I create them?
ViewController.h
@protocol NameDelegate
-(void)delegateMEthod: (ArgType) arg;
@end
@property id delegate;
ViewController.m
[self.delegate delegateMEthod: argument];
MainViewController.m
ViewController viewController = [ViewController new];
viewController.delegate = self;
Method:
-(void)delegateMEthod: (ArgType) arg{
}