Customize UIToolBar with Background Image
- by Taimur Hamza
hi,
I want to add a background image to my UIToolbar instance.
This line of code doesnt work.
myToolBar.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"Layer-1.png"]];
Another solution tht i found out from stackoverflow aint working as well
UIImage *myimage = [UIImage imageNamed:@"Layer-1.png"];
myToolBarImage.image = myimage;
[self.view addSubview:myToolBarImage];
[self.view sendSubviewToBack:myToolBarImage];
[self.view addSubview:myToolBar];
Kindly help me out.
Thanks