UIImage *rightIcon = [UIImage imageNamed:@"fb.jpg"];
<pre><code>UIImage *rightIcon = [UIImage imageNamed:@"fb.jpg"];
UIBarButtonItem *btnFB = [[UIBarButtonItem alloc] initWithImage:rightIcon 
                                                          style:UIBarButtonItemStylePlain 
                                                         target:self 
                                                         action:@selector(FBConnect)];
[_barItems insertObject:btnFB atIndex:0];
</code></pre>

<p>I have written this code but I am not able to display images in a <code>TabBar</code>.</p>
