title: Passing a string from one viewcontroller to another Tabbarcontroller
body: <p>I have a string data that has to be sent to another viewcontroller - In my case is a tabbarcontroller. I received a null data while sending. 
  Below is the code snippet:</p>
  
  <p>ViewController.h</p>
  
  <pre><code>#import &lt;UIKit/UIKit.h&gt;
  @class ViewController2;
  
  @interface ViewController1 : UIViewController{
  
  @private
  ViewController2 *suiteNo;
  
  }
  
  @property(nonatomic,retain) ViewController2 *viewController2;
  
  
  -(IBAction)suiteNumber:(UIButton *)sender;
  @end
  </code></pre>
  
  <p>I have declared in the .m file as below</p>
  
  <p>ViewController1.m</p>
  
  <pre><code>@synthesize viewController2;
  
  //data accessed
  self.viewController2.suiteNum = [[sender titleLabel] text];
  </code></pre>
  
  <p>ViewController2.h</p>
  
  <pre><code>#import &lt;UIKit/UIKit.h&gt;
  
  
  
  @interface ViewController2 : UIViewController{
  
  NSString *suiteNum;
  
    }
  
   @property(nonatomic,copy)NSString *suiteNum;
   @end
  </code></pre>
  
  <p>ViewController2.m</p>
  
  <pre><code>@synthesize suiteNum;
  
  //the passed string is used here
  NSString *firstURL = [segmentOneURL stringByAppendingString:suiteNum];
  </code></pre>
  
  <p>Is there any place where i made a mistake? Please correct me if im wrong. Thank you.</p>