I'm trying to draw text to a custom UIView, but from what I can tell using Quartz 2D isn't quite as flexible as say, ATSU. For example, this text doesn't break at the newline character:
CGContextShowTextAtPoint(ctx, 10, 10, "this\nis a test", strlen("this\nis a test"));
and I don't think I can use bounding rects to have a body of text break naturally at the specified bounds.
What can i use alternatively? A lot of the documentation references ATSU, but doesn't provide links, which I'm guessing is Apple's subtle way of saying it's deprecated. I don't need anything as advanced as rtf, just something beyond what's available out of the box with CGContext
CGContextShowTextAtPoint(ctx, 10, 10, "this\nis a test", strlen("this\nis a test"));
and I don't think I can use bounding rects to have a body of text break naturally at the specified bounds.
What can i use alternatively? A lot of the documentation references ATSU, but doesn't provide links, which I'm guessing is Apple's subtle way of saying it's deprecated. I don't need anything as advanced as rtf, just something beyond what's available out of the box with CGContext