I have a UITextView
with random properties and random size. I need to append a watermark written into a UITextView
. But the watermark needs to have different text properties and different alignment .
Example:
This is the UITextView with random properties.
This is the watermark.
You need to use attributed strings (
NSAttributedString
) instead of strings (NSString
).UITextView
has atext
property and anattributedText
property. In your case, use theattributedText
property once you have created the attributed string.