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?
Use UIBarButtonItemStylePlain
instead.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With