UIBarButtonItemStyle Bordered, Done, Plain, what's the difference?

UIBarButtonItemStyle can be:

  • Laid out
  • Done
  • Usual

Even after reading the documentation, I do not know what the difference is, and when do I use it?

+7
ios objective-c swift
source share
1 answer

If you can read the Apple documentation , you can find the answer. Like par doc this border, plain and Done defines the style of the element .

enter image description here

  • Normal (UIBarButtonItemStylePlain)

    Lights up when pressed. The default item style.

  • Border (UIBarButtonItemStyleBordered)

    Simple style buttons with frame.

  • Done (UIBarButtonItemStyleDone)

    The style for the button made is, for example, a button that completes a task and returns to its previous form.

For testing, you can create a demo project in Xcode and set a different style, and you can understand the difference.

+4
source share

All Articles