How to add a button with border to storyboard in Xcode 6

31,588

You can add Runtime Attribute in storyboard

select your button

Runtime Attribute in storyboard

Share:
31,588
James
Author by

James

Updated on August 13, 2020

Comments

  • James
    James almost 4 years

    I wanna create a button with border in Xcode 6. For instance, I want it to look like the buttons from this library - https://github.com/a1anyip/AYVibrantButton - without any special visual effects. Is it possible to achieve this by doing some setup in IB without writing any code? Thanks.

  • James
    James about 9 years
    Thanks a lot but how do I change the width of the button?
  • James
    James about 9 years
    I think I get it. Now is it possible to change the border color or some further properties?
  • Leo
    Leo about 9 years
    Almost all property of button can be set here. Here is tech of KVC.
  • Matthew Lock
    Matthew Lock over 7 years
    Thanks. Kind of ugly that there's no autocomplete for those properties in Xcode and you can't see the border until you run it.