title: Could not set tab bar image in Xcode 4.2 Programmatically
body: <p>I created new tab bar project in xcode 4.2 and there is no app delegate xib file. Project has two navigation controller. I can set name of tab bar but couldn't set image. I am completely fed up with many tries. <code>FirstViewController *firstView = [[FirstViewController alloc] initWithNibName:@"FirstViewController_iPhone" bundle:nil]
  </code></p>
  
  <pre><code>firstView.title=@"Birthdays";
  firstView.tabBarItem.image=[UIImage imageNamed:@"bottomleft.png"]; 
  SecondViewController *secondView = [[SecondViewController alloc] initWithNibName:@"SecondViewController_iPhone" bundle:nil]; 
  secondView.title=@"Settings"; 
  secondView.tabBarItem.image=[UIImage imageNamed:@"bottomright.png"]; 
  UINavigationController *navController2 = [[UINavigationController alloc] initWithRootViewController:secondView];
      navController2.navigationBarHidden=YES;
      [viewControllers addObject:navController2];   
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/uNkF9.png" alt="enter image description here"></p>
  
  <p>Here you can see what sort of output I am getting.</p>