UITextView背景图片 [英] UITextView background image

查看:205
本文介绍了UITextView背景图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何设置背景图片 UITextView

推荐答案

您可以有包含背景图片的 UIImageView 和作为兄弟姐妹的 UITextView ,然后在Interface Builder中移动文本视图重叠图像视图(或者如果以编程方式进行,则将它们都添加到相同的父视图)。您还需要确保文本视图不是不透明,并给予 0%不透明背景

You can have an UIImageView containing the background image and the UITextView as siblings, then in Interface Builder move the text view to overlap the image view (or add them both to the same parent view if doing it programmatically). You also need to make sure that text view is not opaque and give it a 0% opacity background.

这篇关于UITextView背景图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆