2 Replies Latest reply: May 7, 2013 11:10 PM by PankajAsudani
hartmido Level 1 (0 points)


I have a background image with a circle in the middle and I was wondering if it was possible to make a circle button to go over the logo.


Xcode, OS X Mountain Lion (10.8.3)
  • WoodPlane Level 2 (275 points)

    I have a [+] and [-] button in one of my applications. Should be similar.


    Add a round button to your view.

    In the "button attributes" pane, add the image file name to the "image" attribute. I know tiff works.

    Ad the image file name to your Resources list.

  • PankajAsudani Level 1 (0 points)

    Simply you try this:


    #import <QuartzCore/QuartzCore.h> //in header file

    myButton.layer.cornerRadius = 8;


    OR you can do this:


    If you want a circular button than create an image with a circular shape filled with whatever you want to be displayed in the circle. Make sure your image has an alpha channel and delete all the area around your circle so the background of your image is transparent (alpha =0). (http://www.gimp.org/ is free and easy to use application for such images)

    In IB create a round rect button with type custom button. Select your image as the background of your button and there you have it.


    Reference Link: http://stackoverflow.com/questions/9921138/create-circular-button-in-iphone-sdk