Drawing Text


i'm trying draw text custom uiview, can tell using quartz 2d isn't quite flexible say, atsu. example, text doesn't break @ newline character:

cgcontextshowtextatpoint(ctx, 10, 10, "this\nis test", strlen("this\nis test"));

, don't think can use bounding rects have body of text break naturally @ specified bounds.

can use alternatively? lot of documentation references atsu, doesn't provide links, i'm guessing apple's subtle way of saying it's deprecated. don't need advanced rtf, beyond what's available out of box cgcontext
 

just use cocoa text? quartz rather low level.
 


Forums iPhone, iPad, and iPod Touch iOS Programming


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

Comments