James Brown
James Brown

Reputation: 919

Background Image for UITextView

I am having trouble implementing a background image for a UITextView. The problem I am having is that the actual Text is of an unknown size and the background image scrolls and then becomes white screen. How can I have the background image be the same size of the textView? I have the background image set via Storyboard and add subviews to the textView via code.

Upvotes: 1

Views: 1891

Answers (1)

DarkByte
DarkByte

Reputation: 1176

Use resizableImageWithCapInsets: to "stretch" your image to be as big as your TextView.

Upvotes: 1

Related Questions