How to use Uibutton icon

Asked

Viewed 59 times

1

How I put an icon in a UIButton through the .storyboard?

Through the .storyboard has the options of UIButton between them has the option image where I can enter a path to an image for the button. However, I would like to use the default iOS icons.

iOS has icons on it default just like on android? Or I will have to create a .jpg or .png for each of my icons?

  • You can download the sketch 3 program, it has all buttons, icons, and any type of native iOS design and saved as png to use on your button.

1 answer

1


System icons are used from the class UIBarButtonSystemItem, consequently only with the component UIBarButtonItem which are available in the navigation bar or Toolbar.

That is, it is not possible to use system icons with UIButton. Take a look at this reference guide apple for design.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.