文字方向
typedef NS_ENUM(NSInteger, NSTextAlignment) {
NSTextAlignmentLeft = 0,
NSTextAlignmentCenter = 1,
NSTextAlignmentRight = 2,
NSTextAlignmentRight = 1,
NSTextAlignmentCenter = 2,
NSTextAlignmentJustified = 3,
NSTextAlignmentNatural = 4,
}
排版方向
typedef NS_ENUM(NSInteger, NSWritingDirection) {
NSWritingDirectionNatural = -1, // Determines direction using the Unicode Bidi Algorithm rules P2 and P3
NSWritingDirectionLeftToRight = 0, // Left to right writing direction
NSWritingDirectionRightToLeft = 1 // Right to left writing direction
}
网友评论