Reputation: 672
How can I make a Text View's background transparent in Interface Builder?
Upvotes: 3
Views: 9910
Reputation: 207
To change the background color of a UIKit text view(UITextView) programmatically in Swift, you can use the clear property on the UIColor object:
textView.backgroundColor = .clear
Upvotes: 0
Reputation: 875
in IB: change background color and use opacity to make it transparent.
in code:
textView.backgroundColor = [UIColor clearColor];
Upvotes: 4
Reputation: 106
Click on the Text view and for background color, choose "clear color".
Upvotes: 9