iOS Question Round Button

Discussion in 'iOS Questions' started by narek adonts, Mar 16, 2015.

  1. narek adonts

    narek adonts Well-Known Member Licensed User

    Hi,

    How to create circle shape button. I have tried to do it with SetBorder with rounded corner but when i click outside the circle the click event is activated.

    Any idea?

    Narek
     
  2. omidaghakhani1368

    omidaghakhani1368 Well-Known Member Licensed User

    I offer you to set radius value to 50 and you button convert to circle
     
  3. narek adonts

    narek adonts Well-Known Member Licensed User

    as I mentioned below i have tried this but when I am clicking a bit outside the circle the click event is fired. That means that visual it is circle but the part outside the circle is also part of a button but transparent.

    Narek
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    You can draw a circle on a transparent panel and then calculate the touch distance from the center (in the Touch event).
     
    Brian Robinson likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice