Nithin Michael
Nithin Michael

Reputation: 2186

Place Image to a corner inside a Text View

How i can create a view like in this image in iOS. I need to create a view so that image and the texts should be like that.

Upvotes: 0

Views: 95

Answers (1)

Maciej Oczko
Maciej Oczko

Reputation: 1225

Since iOS 7 in UITextView there is textContainer property of type NSTextContainer.

You can set there exclusionPaths property which is an array of UIBezierPath objects that define your images' shapes. The text will float around those shapes. After that simply add an image view in proper place above text view.

Upvotes: 3

Related Questions