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?
Change background color, and use opacity slider to make it fully transparent.
Programmatically:
textView.backgroundColor = [UIColor clearColor];
Up to iOS 4.3 You had to do the Interface Builder version of setting the background opacity. But as of iOS 5, you can set the backgroundColor and it will work. Just keep in mind when making apps for older OS versions.
In Xcode 4 use interface builder and choose Background as Default
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With