Dismissing view using delegation not working
===

I am trying to use delegation, which I am new at, to dismiss a modally presented view. I am trying to get it to work along the lines of the apple documentation seen [here][1]. So far my code is as follows:

1. Put both views on storyboard, connect first to second view with modal segue. (the segue to view2 works fine)

2. create delegate inside second viewcontroller/create method to call when returned:

        //inside of view2ViewController.h
        @class view2ViewController;
        @protocol view2ViewControllerDelegate <NSObject>
        -(void)goBack:(OptionsViewController *)controller;
        @end

        @interface OptionsViewController : UIViewController
        @property (nonatomic, weak) id <view2ViewControllerDelegate>delegate;
        - (IBAction)return:(id)sender;//connected to button
        @end
        
3. implement delegate in view1ViewController `@interface SplashViewController : UIViewController <OptionsViewControllerDelegate>`

4. write code for delegate method goBack in view1Controller.m

        -(void)goBack:(view2ViewController *)controller{
        [self dismissViewControllerAnimated:YES completion:nil];}

5. finish by writing code for return method in view2ViewController.m

        - (IBAction)return:(id)sender {
        [self.delegate goBack:self];}

I'm not sure where this code is going wrong. The return method is called, but then goBack isn't. I did read the developer documentation, and thought I understood, but I guess not...

PS I change the names of all of my class/variable names on StackOverflow to be more generic, so if there is a slight discrepancy between variable name spellings, it's probably because i typed one wrong.
  [1]: http://developer.apple.com/library/ios/#featuredarticles/ViewControllerPGforiPhoneOS/ManagingDataFlowBetweenViewControllers/ManagingDataFlowBetweenViewControllers.html