IOS custom control panel. Is the element width always set to 44?
2 answers
You can run any UIView class as UIBarButtonItem Here is a UIButton ...
UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
[button setBackgroundImage:[UIImage imageNamed:@"my_bar_button.png"] forState:UIControlStateNormal];
[button sizeToFit];
[button addTarget:target action:action forControlEvents:UIControlEventTouchUpInside];
return [[UIBarButtonItem alloc] initWithCustomView:button];
This button will match the size of my_bar_button.png ... can be any size ..
+3
source to share