0

I have a tabbar and I want to add a UIButton (giant box) on top of the center. How do I make a UIBarButtonItem do this? I want layers, rounded borders, etc.

cdub
  • 24,555
  • 57
  • 174
  • 303

1 Answers1

0

You can init it with a customView like this

UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
UIBarButtonItem *barButtonItem = [[UIBarButtonItem alloc] initWithCustomView:button];
Ashraf Tawfeeq
  • 3,036
  • 1
  • 20
  • 34