How to use icon in a UIButton

1

How do I put an icon in UIButton through .storyboard ?

Through .storyboard you have the options of UIButton between them you have the image option where I can tell a path to an image for the button. But I'd like to use the default iOS icons.

Does iOS have default icons as well as android? Or do I have to create a .jpg or .png for each of my icons?

    
asked by anonymous 03.12.2014 / 13:44

1 answer

1

System icons are used from the UIBarButtonSystemItem ", hence only with the UIBarButtonItem component that are available in the navigation bar or toolbar .

That is, you can not use system icons with UIButton . Take a look at this reference guide from Apple for design.

    
03.12.2014 / 14:34