I know I can create a UIButton and init the UIBarButtonItem with the UIButton. With this solution we can avoid the problem.
Here the solution:
How to remove/avoid small white splash light on UIBarButtonItem programatically
But I need the UIBarButtonItem for call a Popover, and popovers can only be calls from a UIBarButtonItem
[self.myPickerPopover presentPopoverFromBarButtonItem:sender permittedArrowDirections:UIPopoverArrowDirectionDown animated:YES];
presentPopoverFromBarButtonItem:sender
Then when I’m trying to use the UIButton solution the application crash because I’m presenting the Popover from a Button and not from a BarButtonItem.
Any idea to solve the problem? Any idea to delete the light?
Thanks
Just call presentPopoverFromBarButtonItem for the UIBarButtonItem instead of your UIButton.
See this on how to get the UIBarButtonItem from the UIButton:
stackoverflow.com/a/9578399/1691231