Search code examples
iosuitextviewcore-text

UItextview formatting with UIImageView


In my app i need to formate text and image as i show in ScreenShot. enter image description here

How can i do this type of formatting? Should i go with CoreText? if yes How can i do that?

I have gone through example of Raywenderlich here is Link - Core Text Example

but it is different than what i want. So can anyone Help me to solve this?

thanx


Solution

  • You should take a look at DTCoreText - I've been using it for a long time now in my apps and it can handle either attributed strings or HTML (or both). You can embed images and links, and is all been working quite well for me for a year now. The code is supported (ie bugs get fixed).

    This class was designed specifically for applications like yours. In his demo app he has "War and Peace" so you can see it handles huge tasks!