如何在iOS中做自定义按钮? [英] How to make custom buttons in iOS?

查看:83
本文介绍了如何在iOS中做自定义按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

默认的iOS UI很不错,但如果我想使用图像的按钮,而不是我怎么做 - 是OpenGL吗?

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

推荐答案

在界面构建器中将按钮设置为自定义按钮类型。然后将背景图片设置为您想要的背景图片。

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.

这篇关于如何在iOS中做自定义按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆