I'd like to trigger a message from viewController to another viewController.
And I coded like below, but viewController didn't call delegate.
I want to call delegate without stroyboard. I just want to send a message to another viewController.

viewController2.h

```
@protocol ViewController2Delegate;

@interface ViewController2 : UIViewController
@property (nonatomic, weak) id<ViewController2Delegate> delegate;
@end

@protocol ViewController2Delegate <NSObject>
- (void)showSomethingByDelegate;
@end

```

viewController2.m

```
#import "ViewController2.h"

@interface ViewController2 ()

@end

@implementation ViewController2

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}
- (IBAction)buttonPressed:(id)sender {
    [self.delegate showSomethingByDelegate];
}

@end

```

viewController.m

```
#import "ViewController.h"
#import "ViewController2.h"

@interface ViewController ()
<ViewController2Delegate>

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    ViewController2 *vc2 = [[ViewController2 alloc] init];
    vc2.delegate = self;

}
// Below method was not called by delegate.
- (void)showSomethingByDelegate {
    NSLog(@"Button Was Pressed!!!");
}

@end

```