iOS – How to round the corners of a button

In this post I’m going to cover how to round the corners of a button in iOS.

I’ve seen a lot of solutions for this, but I found a really simple one.

First of all, you need to select the button and then go to the Object Inspector and click on the + button, then you need to create the keypath: layer.cornerRadius type as a number, then add the value 4 or the value you want as shown below.

Captura de Tela 2016-02-03 às 12.11.12

After that you can run your app and see the result.

PS: you can only see the result when running the app

That’s all for today. See you in the nexts posts

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s