With whatever image I try to intialize the UIBarButtonItem, its just showing a white background in the size of the image. Even when I tired in interface builder, the result is the same. All these images when used with other objects works perfectly.
How can I solve this??
Only alpha values in the image are used to create the bar button image. Whatever image you provide is converted into a image with shades of white, based on the alpha values.
So given that your image is completely white it is clear you don’t have any transparency.
The guidelines have this to say:
You can however use a custom view to get a full-colour image as this question shows:
Can I have a UIBarButtonItem with a colored image?
This is a bit over the top though and it would be best to stick to the guidelines and use a normal button with an appropriately formatted image.