透明的UITextView

Mat*_*man 19 iphone

如何使UITextView透明?我在Interface Builder中构建了视图,并在其中放置了一个UITextView,它覆盖了背景.

有任何想法吗?

mvd*_*vds 51

更改背景颜色,并使用不透明度滑块使其完全透明.

编程方式:

textView.backgroundColor = [UIColor clearColor];
Run Code Online (Sandbox Code Playgroud)