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).UITextViewhas atextproperty and anattributedTextproperty. In your case, use theattributedTextproperty once you have created the attributed string.