Function

NSTextAlignmentFromCTTextAlignment

Converts a Core Text alignment constant value to the matching constant value used by UIKit.

Declaration

NSTextAlignment NSTextAlignmentFromCTTextAlignment(CTTextAlignment ctTextAlignment);

Parameters

ctTextAlignment

The Core text alignment constant you want to convert.

Return Value

The UIKit text alignment that corresponds to the value specified in ctTextAlignment.

Discussion

Use this function when you need to map between the Core Text and UIKit constants for text alignment.

See Also

Text Manipulations

NSTextAlignmentToCTTextAlignment

Converts a UIKit text alignment constant value to the matching constant value used by Core Text.