What i want is to set UIImage
to UITextview.textColor
.
So is that possible that : If i set clear Color to textColor
and set image to UITextView's
background. Now i want to set clear color to UITextview
except string area so that image is set to text background.??
使用这个方法
[UIColor colorWithPatternImage:[UIImage imageNamed:@"Something.png"]]
You can set an Image as the backgroundColor
of the UITextView
like this:
txtView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"ImageName.png"]];
All the best!!!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.