Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make custom buttons in iOS?

The default iOS UI is nice but if I wanted to use images for buttons instead how would I do that - is it OpenGL?

like image 756
neutrino Avatar asked Nov 02 '11 17:11

neutrino


People also ask

How do I customize a button in Xcode?

Buttons in iOS Let's see how far this approach can take us in Xcode. In the project navigator, click the storyboard file and select the button. Select the Attributes Inspector (a tiny slider icon) from the Utilities sidebar to the right to see the customization options available in Interface Builder.

What are custom buttons?

Custom buttons can connect users to external applications, such as web pages, and launch custom links. You can choose the display window properties that determine how the target of a link or button is displayed to your users. Custom links can include Salesforce fields as tokens within the URL.


1 Answers

Make the button a "custom button" type in interface builder. Then set the background image to be whatever you want the background to be.

Unfortunately the default button style is a little boring. You'll need to find or make a button with an image editor.

like image 94
Randall Avatar answered Nov 08 '22 07:11

Randall