UIImage *rightIcon = [UIImage imageNamed:@"fb.jpg"];
UIBarButtonItem *btnFB = [[UIBarButtonItem alloc] initWithImage:rightIcon
style:UIBarButtonItemStylePlain
target:self
action:@selector(FBConnect)];
[_barItems insertObject:btnFB atIndex:0];
I have written this code but I am not able to display images in a TabBar.
1 Answer