Reputation: 919
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
Reputation: 1176
Use resizableImageWithCapInsets: to "stretch" your image to be as big as your TextView.
Upvotes: 1