zoukankan      html  css  js  c++  java
  • UILineBreakMode

    Constants

    UILineBreakMode

    Options for wrapping and truncating text.

    typedef enum {
       UILineBreakModeWordWrap = 0,
       UILineBreakModeCharacterWrap,
       UILineBreakModeClip,
       UILineBreakModeHeadTruncation,
       UILineBreakModeTailTruncation,
       UILineBreakModeMiddleTruncation,
    } UILineBreakMode;
    
    Constants

    UILineBreakModeWordWrap

    Wrap or clip the string only at word boundaries. This is the default wrapping option.

    Available in iOS 2.0 and later.

    Declared in UIStringDrawing.h.

    UILineBreakModeCharacterWrap

    Wrap or clip the string at the closest character boundary.

    Available in iOS 2.0 and later.

    Declared in UIStringDrawing.h.

    UILineBreakModeClip

    Clip the text when the end of the drawing rectangle is reached. This option could result in a partially rendered character at the end of a string.

    Available in iOS 2.0 and later.

    Declared in UIStringDrawing.h.

    UILineBreakModeHeadTruncation

    Truncate text (as needed) from the beginning of the line. For multiple lines of text, only text on the first line is truncated.

    Available in iOS 2.0 and later.

    Declared in UIStringDrawing.h.

    UILineBreakModeTailTruncation

    Truncate text (as needed) from the end of the line. For multiple lines of text, only text on the last line is truncated.

    Available in iOS 2.0 and later.

    Declared in UIStringDrawing.h.

    UILineBreakModeMiddleTruncation

    Truncate text (as needed) from the middle of the line. For multiple lines of text, text is truncated only at the midpoint of the line.

    Available in iOS 2.0 and later.

    Declared in UIStringDrawing.h.

    Discussion

    For methods that draw at a specified point (as opposed to those that draw in a rectangular region), these options specify the clipping behavior that is applied to the string.

  • 相关阅读:
    工厂模式
    将博客搬至CSDN
    网络安全-跨站脚本攻击XSS(Cross-Site Scripting)
    Linux 权限
    git常用的语句
    git代码提交与克隆
    git学习
    Mybatis常见问题
    关于集合常见的问题
    远程连接(加密验证问题解决)
  • 原文地址:https://www.cnblogs.com/ihojin/p/iOS.html
Copyright © 2011-2022 走看看