UITextView background image

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

How can I set up a background image to UITextView?

10条回答
  •  佛祖请我去吃肉
    2020-12-02 09:15

    @durai: Your image has a height limit after which white background will appear if empty background appears after it scrolls down then you can repeat the same image.

    This might be helpful:

    textView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed: @"Image.png"]];
    

提交回复
热议问题