title: Calling Story Board data - Objective C
body: <p>I have an <code>NSMutableArray</code> that I am trying to access from one of my <code>ViewControllers</code> to the other.  </p>
  
  <p>Here is what I am doing:</p>
  
  <p><code>a.h</code>:</p>
  
  <pre><code>#import "b.h"
  .....
  @property(nonatomic,strong) b *viewControllers;
  </code></pre>
  
  <p><code>a.m</code>:</p>
  
  <pre><code>- (void)viewDidLoad
  {
      [super viewDidLoad]; 
      UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main_iPhone" bundle:nil];
      _viewControllers = [storyboard instantiateViewControllerWithIdentifier:@"createChallengeInfo"];
      .....code....
  }
  ....code....
  -(IBAction)sendVideo:(id) sender
  {
      NSLog(@"%@",self.viewControllers.selectedCells);
  }
  </code></pre>
  
  <p>Now when <code>logging</code> this I encounter an error, <code>EXC_BAD_ACCESS (code=1,address =0x13765350)</code>.</p>
  
  <p>Here is my other <code>ViewController</code>.</p>
  
  <p><code>b.h</code>:</p>
  
  <pre><code>...code....
  @property (strong, nonatomic) NSMutableArray *selectedCells; &lt;-- this is the array I want to access
  ...code...
  </code></pre>
  
  <p><code>b.m</code>:</p>
  
  <pre><code>#import "a.h"
  ...import...
  @interface b ()
  
  @end
  
  @implementation b
  - (void)viewDidLoad
  {
  
      [super viewDidLoad];
  
      /* INITIATE VARIABLE */
  
      _selectedCells = [[NSMutableArray alloc] init];
      ....code....
  }
  ...code...
  </code></pre>
  
  <p>So my issue is accessing, <code>selectedCells</code>.  But firstly why am I getting a <code>EXC_BAD_ACCESS</code>?  And secondly before I get the <code>error</code> It lays out the <code>ViewController</code> and shows the variable <code>selectedCells</code> as nil.</p>
  
  <p>Suggestions, thoughts?</p>