title: Pass NSMutableArray Data Between Views
body: <p>I am having trouble passing my NSMutableArray data from one view to the other.</p>
  
  <p>My view transition works the following way</p>
  
  <p>Send View -> Recipients View </p>
  
  <p>Recipients View -> Send View</p>
  
  <p>In the recipients view I am grabbing the people I want to send my data to. Once I grab the people using an array, I go back to my send view to send those people that data.</p>
  
  <p>In my send view I have the following NSMutableArray</p>
  
  <pre><code>@property (nonatomic, strong) NSMutableArray *sendTo;
  </code></pre>
  
  <p>I initialize it in viewDidLoad like so:</p>
  
  <pre><code>self.sendTo = [[NSMutableArray alloc] init];
  </code></pre>
  
  <p>In my Recipients View I have the following NSMutableArray</p>
  
  <pre><code>@property (nonatomic, strong) NSMutableArray *recipientsArray;
  </code></pre>
  
  <p>I initialize it in the viewDidLoad like so:</p>
  
  <pre><code>self.recipientsArray = [[NSMutableArray alloc] init];
  </code></pre>
  
  <p>I also have a back button in this controller which tries to handle the passing of the data in the recipientsArray. Please note this array does have data in it up until the point of the view switch.</p>
  
  <pre><code>- (IBAction)back {
     SendView *send = [self.storyboard instantiateViewControllerWithIdentifier:@"View"];
     send.sendTo = [NSMutableArray arrayWithArray:self.recipients];
  [self dismissViewControllerAnimated:YES completion:nil];
  }
  </code></pre>
  
  <p>Any idea why the array in my Send View is returning nil?</p>