iOS Question Create round button

tufanv

Expert
Licensed User
Longtime User
Hello,

You can draw a circle on a transparent panel and then calculate the touch distance from the center (in the Touch event).

this was offered by Erel for round corners but it is a complicated way to draw circle buttons. Is there an easy way to create just circle buttons ?
Setting half of the width and height as corner radius seems to work. is it a correct way to do it ?
TY
 

BillMeyer

Well-Known Member
Licensed User
Longtime User
If you want it with only a colour background then it is very easy.

This is the process:

1. In designer, make a button that is square e.g. 120 x 120
2. In the properties section - scroll down to "Border Properties"
3. Change Corner radius to 50% of your width - in this case 60
4. You should have a round button

Enjoy !!
 
Upvote 0
Top