Sign up ×  I'm using iOS 5 with Storyboard. My UITabBar is
created using the Interface Builder. I have two similar items in
my TabBar 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 UITableView and in the viewDidLoad, and
then assign the right type according to the Tag.  -
(void)viewDidLoad     [super viewDidLoad];      if
(self.tableView.tag == 1)         type = @"lent";     else if
(self.tableView.tag == 2)         type = @"borrowed";  Any
better way to do it? I'm not creating my UITabBar in code, so my
AppDelegate 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.
share|improve this question  2 Answers 2  up vote 3 down vote
accepted  You could expose the type as a property on your common
view controller, and set it when the relevant tab bar item is
selected (tabBarController:didSelectVie