Reputation: 197
In my app i need to formate text and image as i show in ScreenShot.
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
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
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