如何使UITextView背景透明? [英] How to make UITextView background transparent?

查看:119
本文介绍了如何使UITextView背景透明?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中,我有一个较大的文本字段,允许用户输入注释,但是唯一的问题是它不会融合到我设置的背景图像中.使用UITextField,可以在Interface Builder中设置边框,使其不具有白色背景,它具有透明背景,使其显示我在其后面设置的背景.我没有在UITextView中看到此Border选项,有人知道我如何能达到相同的效果吗? (顺便说一下,我正在使用Xcode 4.2).

In my application, I have a large text field that allows the user to input notes, but the only issue is that it does not blend into the background image that I have set. With the UITextField, you can set the border in the Interface Builder so that it does not have a white background, it has a transparent background making it show the background I have set behind it. I did not see this Border option with the UITextView, does anyone know how I can achieve the same effect? (I'm using Xcode 4.2 by the way).

谢谢!

推荐答案

您可以在Interface Builder中更改背景的不透明度.

You can change the opacity of the background in Interface Builder.

这篇关于如何使UITextView背景透明?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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