title: How to Access Objects from one ViewController to another ViewController
body: <p>Provide some tips to get rid of the following scenario.</p>
  
  <p>Description:</p>
  
  <p>I have two viewControllers namely <em>ViewController1</em> and <em>ViewController2</em>, so obiviously we have <em>ViewController1.h</em>, <em>ViewController1.m</em> and <em>ViewController2.h</em>, <em>ViewController2.m</em>.
  Now I declared an</p>
  
  <pre><code>NSString *string1;
  </code></pre>
  
  <p>in <em>ViewController1.h</em> and declared it as a property</p>
  
  <pre><code>@property(nonatomic,retain) NSString *string1;
  </code></pre>
  
  <p>and synthesized it in <em>ViewController1.m</em> as</p>
  
  <pre><code>@synthesize string1;
  </code></pre>
  
  <p>and in <em>ViewController1.m</em>, i set the string1 value as</p>
  
  <pre><code>string1=@"Hello Every One";
  </code></pre>
  
  <p>Similarly I declared</p>
  
  <pre><code>NSString *string2;
  </code></pre>
  
  <p>in <em>ViewController2.h</em> and declared it as a property</p>
  
  <pre><code>@property(nonatomic,retain)NSString *string2;
  </code></pre>
  
  <p>and synthesized it in <em>ViewController2.m</em> as</p>
  
  <pre><code>@synthesize string2;
  </code></pre>
  
  <p>If I want set the <code>string1</code> value (in <em>ViewController1.m</em>) to <code>string2</code> (in <em>ViewController2.m</em>), how can I do that?</p>