title: set UITextField.text from another class
body: <p>I have two views, and i'm trying to show text that i getting from first view in <code>UITextField</code> of another . Second view shown by - (<a href="https://github.com/rnystrom/RNBlurModalView" rel="nofollow">source</a>) so methods ViewWillAppear and ViewDidLoad won't work. And viewDidLoad method of second view is runs when app is started. </p>
  
  <p>I'm tried to make method of second class </p>
  
  <p>secondClass.h:</p>
  
  <pre><code>@property (strong, nonatomic) IBOutlet UITextField *itemName;//all hooked up in storyboard
  -(void)SetName:(NSString *)name;
  </code></pre>
  
  <p>secondClass.m:</p>
  
  <pre><code>-(void)SetName:(NSString *)name{
      NSLog(@"%@",name);
      itemName.text = name;//itemName - textField
  }
  </code></pre>
  
  <p>and use it in first one:</p>
  
  <pre><code>secondViewConroller *secondView = [[secondViewConroller alloc]init];
  [secondView SetName:@"Bill"];
  </code></pre>
  
  <p><code>NSlog</code> shows "Bill" but <code>textField.text</code> won't change anything.</p>
  
  <p>My guess that app shows UITextField without changes because it shows second view that it gets from viewDidLoad method and i need to update it somehow</p>
  
  <p><strong>My question</strong>: What is the best approach to change attributes of UI elements from different classes?</p>