PatrickGamboa
PatrickGamboa

Reputation: 672

How to make Text View transparent?

How can I make a Text View's background transparent in Interface Builder?

Upvotes: 3

Views: 9910

Answers (3)

Victor Bruce
Victor Bruce

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

crimi
crimi

Reputation: 875

in IB: change background color and use opacity to make it transparent.

in code:

textView.backgroundColor = [UIColor clearColor];

Upvotes: 4

Phil
Phil

Reputation: 106

Click on the Text view and for background color, choose "clear color".

Upvotes: 9

Related Questions