title: Passing data between UIViewController and UITableViewController not connected via segue
body: <p>I followed the advice at this link <a href="https://stackoverflow.com/questions/17356543/changing-the-value-of-a-property-of-another-uiviewcontroller">Changing the value of a property of another UIViewController</a></p>
  
  <p>I have a Login page that is connected to a github project that I downloaded called <a href="https://github.com/John-Lluch/SWRevealViewController" rel="nofollow noreferrer">SWRevealViewController</a>. It essentially provides a slide out menu for the application. I need to pass a value from my Login Page to the initial Page that is loaded with the SWRevealViewController. Can't seem to get it working. Can anyone point me in the right direction? What I have tried is the following:</p>
  
  <p>LoginViewController.m</p>
  
  <pre><code>#import "LoginViewController.h"
  #import "ProfileTableViewController.h"
  
  @interface LoginViewController ()
  @property (strong, nonatomic) ProfileTableViewController *secondViewController;
  @end
  
  @implementation dbViewController
  
  -(id)init
  {
      if (self = [super init]) {
          self.secondViewController = [[ProfileTableViewController alloc] init];
      }
      return self;
  }
  
  - (BOOL)shouldPerformSegueWithIdentifier:(NSString *)identifier sender:(id)sender{
  
  
      if([identifier isEqualToString:@"Login"]){
          [self login:sender];
          self.secondViewController.idNumber = _IDNumber;
          _secondViewController.idNumber = _IDNumber;            
              return YES;
       }    
  }
  </code></pre>
  
  <p>LoginViewController.h</p>
  
  <pre><code>#import &lt;UIKit/UIKit.h&gt;
  #import &lt;sqlite3.h&gt;
  #import "ProfileTableViewController.h"
  
  @interface LoginViewController : UIViewController
  
  @property (strong, nonatomic)NSString *IDNumber;
  @end
  </code></pre>
  
  <p>ProfileTableViewController.h</p>
  
  <pre><code>#import &lt;CoreLocation/CoreLocation.h&gt;
  #import &lt;UIKit/UIKit.h&gt;
  #import &lt;sqlite3.h&gt;
  
  @interface ProfileTableViewController : UIViewController &lt;CLLocationManagerDelegate, UITextFieldDelegate&gt;
  @property (nonatomic) NSString *idNumber;
  @end
  </code></pre>
  
  <p>ProfileTableViewController.m</p>
  
  <pre><code>#import "ProfileTableViewController.h"
  #import "SWRevealViewController.h"
  #import "ProfileEditFieldController.h"
  
  @interface ProfileTableViewController ()
  
  @end
  
  @implementation ProfileTableViewController
  
  - (void)viewDidLoad
  {
      [super viewDidLoad];
      NSLog(_idNumber);
  
  }
  @end
  </code></pre>
  
  <p>Just to add clarification, the two blue controllers are the Login, and the three controllers on the right, one of them is the controller I would like to pass the value for
  <img src="https://i.stack.imgur.com/Cpavp.png" alt="enter image description here"></p>