Contents

CTFramesetterCreateWithAttributedString(_:)

Creates an immutable framesetter object from an attributed string.

Declaration

func CTFramesetterCreateWithAttributedString(_ attrString: CFAttributedString) -> CTFramesetter

Parameters

  • attrString:

    The attributed string for constructing the framesetter object.

Return Value

A reference to a framesetter object if the call is successful; otherwise, NULL.

Discussion

Use the framesetter object to create and fill text frames with the CTFramesetterCreateFrame(_:_:_:_:) call.

See Also

Creating a Framesetter