Objective-C libraries wrapping Core Text / Core Image?

Drawing large scrollable content using CATiledLayer works great in my application. What doesn't work so well is drawing images and multi-line text using the Core Text and Core Image APIs in C.

I have a strong feeling that I am trying to invent a wheel by writing my own Objective-C shell classes around C functions, such as CGContextShowTextAtPointmirroring everything with CGContextSetTextMatrix(context, CGAffineTransformMakeScale(1, -1)), etc. etc. etc.

I cannot use the UIKit context drawing methods because they cause crashing due to the parallel background in the CATiledLayer.

Which Objective-C libraries already exist that wrap Core Text and Image functions for ease of use in the background?

Cheers, EP.

UPDATE: now everything will be all right, I will also agree with the recommendations for a book or an online resource other than Apple Docs that describe CoreText in detail.

+3
source share
1 answer

So, after a week I did not come any closer to finding a library, although the list of libraries in cocoaobjects.com is very complete. Now I have written my own wrappers, although it feels redundant.

What helped a lot: Chapter 5 of the book "Beginning iPad Development for iPhone Developers: Mastering the SDK iPad" . It has a very good introduction to Core Text, especially with a block pointing to free bridging and opaque C types.

+2
source

Source: https://habr.com/ru/post/1794691/


All Articles