transparent UITextView

后端 未结 7 1849
长情又很酷
长情又很酷 2021-02-04 02:49

How do I make a UITextView transparent? I built the view in Interface Builder and placed a UITextView into it and it covers the background.

Any ideas?

7条回答
  •  难免孤独
    2021-02-04 03:32

    Change background color, and use opacity slider to make it fully transparent.

    Programmatically:

    textView.backgroundColor = [UIColor clearColor];
    

提交回复
热议问题