Hi,
I want to customize my UIBarButtonItem's appearance. Here's the code I'm currently using:
UIButton *button = [[UIButton alloc] initWithFrame:CGRectMake(267, 6, 48, 30)];
[editButton setCustomView:button]; // editButton is the UIBarButtonItem
Unfortunately, the UIButton does not get drawn, i.e. it's 100% transparent. I know the button is there because when I add a line to the code, like so:
UIButton *button = [[UIButton alloc] initWithFrame:CGRectMake(267, 6, 48, 30)];
[editButton setCustomView:button]; // editButton is the UIBarButtonItem
UIRectFill(button.frame);
I see a black square appearing in the position where the button should appear.
How can I get my UIButton to be drawn? I already looked at a ton of places, but nothing seems to work ...