Function

NSTextAlignmentToCTTextAlignment

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

Declaration

CTTextAlignment NSTextAlignmentToCTTextAlignment(NSTextAlignment nsTextAlignment);

Parameters

nsTextAlignment

The UIKit text alignment constant you want to convert.

Return Value

The Core Text alignment that corresponds to the value specified in nsTextAlignment.

Discussion

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

See Also

Text Manipulations

NSTextAlignmentFromCTTextAlignment

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