title: Presenting a modal view manually from an actionsheet
body: <p>I'm pretty new to iOS dev, and I've been reading a ton on this problem, but still can't figure it out.</p>
  
  <p>I have a button in an action sheet that is supposed to activate and present a slide-up modal that is a from/to date picking screen (it has its own controller <code>DatePickerViewController</code>. The action sheet is triggered by a button in the toolbar of a NavigationViewController's  subview ("Map of Shows" view, top left button). Graphic shows the current storyboard relationships:</p>
  
  <p><img src="https://i.stack.imgur.com/e9PHK.png" alt="Navigation controller to modal relationships"></p>
  
  <p>The code for this sequence looks like this:</p>
  
  <pre><code>// ShowsContainerController.m
  - (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex
  {
      if( buttonIndex == 1 ){
          // 1. Activates from actionsheet
          [(NavigationViewController *)self.parentViewController showDateSelect];
      }
  }
  
  // NavigationViewController.m
  // 2. fires up the datepicker view
  -(void)showDateSelect
  {
      pickerView = [[DatePickerViewController alloc] init ];
  
      [self presentViewController:pickerView animated:YES completion:nil];
  }
  
  // DatePickerViewController.m
  // 3. Instantiation of this controller. Definitely fires nslog.
  -(void)viewDidLoad
  {
      NSLog(@"Here");
  }
  </code></pre>
  
  <p>Once "here", the screen just goes black. I assume this is because I'm not doing something right either with the instantiation of the date picker controller, or with the segue to it. All of the views in question are associated with their respective controllers in the storyboard configs. To further confuse the issue, I have a UITableViewController that I created for another screen, and just for shits and giggles, attempted to load that, and it worked fine. I then created another completely separate UIViewController, pointed it back to the controller files that control the current non-working one, and it bombs as well, so I'm thinking the issue are the header and main files for the non-working UIViewController. <em>ed. scratch that last note; I created a completely new header, main file and NIB for the view and it still didn't work. I don't know what the hell the deal is.</em></p>
  
  <p>Any and all help would be greatly appreciated.</p>
  
  <p><em>Addendum</em></p>
  
  <pre><code>- (IBAction)showOptions:(id)sender
  {
      NSString *showTypes;
  
      if( self.onlyShowPreferredEvents ){
          showTypes = @"\u2713 Only shows that I'll like";
      } else {
          showTypes = @"Only shows that I'll like";
      }
  
      _showDisplayOptionsActionSheet = [[UIActionSheet alloc] initWithTitle:@"Event Display Settings" delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:nil otherButtonTitles: showTypes, @"Date Range", nil];
  
      [_showDisplayOptionsActionSheet showFromTabBar:self.tabBarController.tabBar];
  
  }
  </code></pre>
  
  <p>Per the comments.</p>
  
  <p><em>Addendum 2</em>
      // All of DatePickerViewController.m</p>
  
  <pre><code>#import "DateRangeViewController.h"
  
  @interface DateRangeViewController ()
  
  @end
  
  @implementation DateRangeViewController
  
  - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
  {
      self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
      if (self) {
          // Custom initialization
      }
      return self;
  }
  
  - (void)viewDidLoad
  {
      [super viewDidLoad];
      // Do any additional setup after loading the view.
  }
  
  - (void)didReceiveMemoryWarning
  {
      [super didReceiveMemoryWarning];
      // Dispose of any resources that can be recreated.
  }
  
  @end
  
  
  // All of DatePickerViewController.h
  
  #import &lt;UIKit/UIKit.h&gt;
  
  @interface DateRangeViewController : UIViewController
  
  @end
  </code></pre>