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.
Asked
Active
Viewed 500 times
1 Answers
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