How to add image to UITabBarController

I am using UITabBarController and want to add image to it, a whole image to tab bar, not to any tab item. Is it possible, can anyone guide. Thanks in advance.

Answers


Try this. May be it help

 UIImage *tabBackground = [[UIImage imageNamed:@"Your Image"] 
                          resizableImageWithCapInsets:UIEdgeInsetsMake(0, 0, 0, 0)];
// Set background for all UITabBars

[[UITabBar appearance] setBackgroundImage:tabBackground];

// Set background for only this UITabBar

[[tabBarController tabBar] setBackgroundImage:tabBackground];

Need Your Help

Add overlay / Manipulate using AVFoundation for iPhone?

c++ ios4 avfoundation

I am new to the whole AVFoundation thing. Before I was using the good old UIImagePickerControllerSourceTypeCamera.