iOS常见枚举类型

NSLineBreakMode的区别
typedef enum 
   UILineBreakModeWordWrap = 0, 
   UILineBreakModeCharacterWrap, 
   UILineBreakModeClip, 
   UILineBreakModeHeadTruncation, 
   UILineBreakModeTailTruncation, 
   UILineBreakModeMiddleTruncation, 
} UILineBreakMode; 
   UILineBreakModeWordWrap = 0, 
   以单词为单位换行,以单位为单位截断。 
   UILineBreakModeCharacterWrap, 
   以字符为单位换行,以字符为单位截断。 
   UILineBreakModeClip, 
   以单词为单位换行。以字符为单位截断。 
   UILineBreakModeHeadTruncation, 
   以单词为单位换行。如果是单行,则开始部分有省略号。如果是多行,则中间有省略号,省略号后面有4个字符。 
   UILineBreakModeTailTruncation, 
   以单词为单位换行。无论是单行还是多行,都是末尾有省略号。 
   UILineBreakModeMiddleTruncation, 
   以单词为单位换行。无论是单行还是多行,都是中间有省略号,省略号后面只有2个字符。 



能够定义的button类型有以下6种,

typedef enum {

  UIButtonTypeCustom = 0, 自定义风格
  UIButtonTypeRoundedRect, 圆角矩形 
  UIButtonTypeDetailDisclosure, 蓝色小箭头按钮,主要做详细说明用
  UIButtonTypeInfoLight, 亮色感叹号
  UIButtonTypeInfoDark, 暗色感叹号
  UIButtonTypeContactAdd, 十字加号按钮
} UIButtonType;

你可能感兴趣的:(ios,NSLineBreakMode,常见枚举,UIButtonType)