How to make a circle button?
Hi!
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.
Thanks!
Xcode-OTHER, OS X Mountain Lion (10.8.3)
Hi!
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.
Thanks!
Xcode-OTHER, OS X Mountain Lion (10.8.3)
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.
Simply you try this:
#import <QuartzCore/QuartzCore.h> //
in header filemyButton.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
How to make a circle button?