You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
但是,简单的方法是为那些少量文本的绘制或那些很少会被绘制的文本而设计的。它们会在每一次调用时创建并处理各种所支持的对象。为了重复地绘制字符串,使用NSLayoutManager将会是高效的方法,就像* Text Layout Programming Guide中绘制字符串中描述的那样。NSLayoutManager是Cocoa文本系统的一部分,有关Cocoa文本系统,参见Cocoa Text Architecture Guide*。