Nignesh
Nignesh

Reputation: 197

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

Upvotes: 0

Views: 467

Answers (2)

David Hoerl
David Hoerl

Reputation: 41632

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!

Upvotes: 1

anka
anka

Reputation: 3857

I know it is not exactly what are you asking for but I would suggest to go with a UIWebView!

Within the UIWebView you can show HTML code which would be really easy to format like your example shown in your question.

Upvotes: 0

Related Questions