views:

74

answers:

2

It seems most reading application that will display quite a lot of text will still use WebView instead of Core Text (Instapaper, iBooks, other reading apps).

I want to know if there are any concerns for those applications not using Core Text but WebView which will generally have rather poor performance.

+2  A: 

This is quite simply answered:

  • Web views are easy to program. CoreText is not easy to program, even average CoreText usage involves lots of code.
  • Web views are very fast. They have been optimized by lots of professionals. No easy to copy.
  • In order to make CoreText fast you have to do a LOT of work. Building a performant CoreText view would require you to buffer, transform coordinates, etc. Nothing that needs to be done with web views.
  • As core text ist rendering only, you'll have to implement stuff like scrolling (at least partially) on your own. Performance is the key here. Buffering and extreme optimization will be required unfortunately...

That's why noone does it. CoreText can be faster. But currently (iOS 4.x) this is a LOT of work. Nothing to be done in just a few hours. Especially if you're not a pro, leave your hands of CoreText for large texts for now. My opinion...

EDIT: Things get hairy if you want to embed images, etc. You need to pass all these things down to core text. Requires lots of fine tuning...

Max Seelemann
For Pagination, Hyphenation and Embedded font block of text, Core Text should be way better, the hard part is having to implement more to make copy and selection work.
overboming
That's right, CoreText produces better layout and has more (finer) options.
Max Seelemann
+1  A: 

Actually I've used CoreText to create a framework for making press related application, (books & magazines ) and it's being used for some products atm, It's not that hard to use CoreText but there are some problems and the documentation is not perfect either but it shouldn't be hard to learn how to use CoreText, you can find some sources on the web that are adjusted to fit iphone rather than MacOsX.

Cheers, Krzysztof Zabłocki

Krzysztof Zabłocki
anything I can download in the appstore? Want to check how good it works.
overboming
For now only picturebooks are in store, magazine is not completed yet but I can't share details because of NDA, anyway CoreText is the way if you have stylized text and you want to have custom text flow, in magazine we for example has many rects where text flows between them and they can be set in any position ;] so you can have diagonal text for example or make text ommit some pathes by building rects along it, also I used CoreText ability to render stylized text to create karaoke effect.
Krzysztof Zabłocki