UITextView background image

后端 未结 10 2033
说谎
说谎 2020-12-02 08:44

How can I set up a background image to UITextView?

10条回答
  •  天涯浪人
    2020-12-02 09:15

    For tiled background i like this solution

    UIImage *patternImage = [UIImage imageNamed:@"image.png"];
    UIColor* color = [UIColor colorWithPatternImage:patternImage];
    textView.backgroundColor = color;
    

提交回复
热议问题