title: UITabBar - two views (nib) same Class using Storyboard
body: <p>I'm using iOS 5 with Storyboard. My <code>UITabBar</code> is created using the Interface Builder. I have two similar items in my <code>TabBar</code> that is the same list, just with different type of item in it. What I've done, but looks weird to me, is setting a different "Tag" to each <code>UITableView</code> and in the <code>viewDidLoad</code>, and then assign the right type according to the Tag.</p>
  
  <pre><code>- (void)viewDidLoad
  {
      [super viewDidLoad];
  
      if (self.tableView.tag == 1)
      {
          type = @"lent";
      }
      else if (self.tableView.tag == 2)
      {
          type = @"borrowed";
      }
  }
  </code></pre>
  
  <p>Any better way to do it? I'm not creating my <code>UITabBar</code> in code, so my <code>AppDelegate</code> is pretty empty! The type I set is just an attribute in one of my Core Data Entity, on a list I have Borrowed Items and on the other I have Lent Items, but they're the same entity.</p>