title: Preserve in UIView
body: <p>I need to know how to keep the data they contain elements of View (TextField, etc) after pressing a button that leads to another view and then return to the initial data keeping at first sight establish a price in the second defined as that price should we pay each guest, to return to the view in which the price is set, data proviamente introduced, and the total has gone ... (I try to return an array of diners).</p>
  
  <pre><code>ContactosViewController.h
  
  @class ContactosViewController;
  
  @protocol ContactosViewControllerDelegate
  
  - (void)addItemViewController:(ContactosViewController *)controller didFinishEnteringItem:(NSMutableArray *)item;
  
  @end
  
  @property (weak, nonatomic) id &lt;ContactosViewControllerDelegate&gt; delegate;
  AltaViewController.h
  
  @interface AltaViewController : UIViewController &lt;ContactosViewControllerDelegate&gt;
  AltaViewController.m
  
  -(void)addItemViewController:(ContactosViewController *)controller didFinishEnteringItem:(NSMutableArray *)item
  
  {
      NSString *personaString =[NSString stringWithFormat:[item objectAtIndex:0]];
  
      self.altaResumen.text=personaString;
  
      [self dismissViewControllerAnimated:YES completion:nil];
  }
  </code></pre>
  
  <p>I'm new to this taking references from various places, I appreciate any contribution however small.Thank you very much.</p>