title: Refer to another tab bar within iOS application
body: <p>I have a tab bar application with a login screen on a UIWebView and then when the user is logged in all the other tabs are able to use the same login.
  The login button is also on the website and I have no control over that code.</p>
  
  <p>Now if a user is not logged in then the other tabs give an error, but I was wondering if i could do an if statement, comparing the active tab to the first, to see if the login page is displayed. so the idea would look like this.</p>
  
  <pre><code>if(tab bar 1 == index.html) {
  [webView loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"index" ofType:@"html"]isDirectory:NO]]];
  else{
  NSString *urlAddress = @"website that is requested";    
  NSURL *url = [NSURL URLWithString:urlAddress];
  NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
  [webView loadRequest:requestObj];
  }
  </code></pre>
  
  <p>What do I put in the () after the if statement?</p>
  
  <p>Cheers</p>