Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UIBarButtonItemStyleBordered is deprecated; what should I do, instead?

I'm trying to create a UIBarButtonItem like this:

UIBarButtonItem *discardButton =
   [[UIBarButtonItem alloc] initWithTitle:NSLocalizedString(@"edit-document.button.discard", "Discard Changes button")
                                    style:UIBarButtonItemStyleBordered
                                   target:self
                                   action:@selector(discardButtonAction:)];

However, I notice that UIBarButtonItemStyleBordered is now deprecated. What should I do, instead?

like image 995
Risk Corp Avatar asked Jul 03 '15 16:07

Risk Corp


1 Answers

Use UIBarButtonItemStylePlain instead.

like image 114
Léo Natan Avatar answered Sep 28 '22 03:09

Léo Natan