【问题标题】:How to wrap text around image [closed]如何在图像周围环绕文字[关闭]
【发布时间】:2013-09-18 11:48:57
【问题描述】:

我有一个 UIImageView 和一个 UITextView,我希望将 UITextView 包裹在我拥有的图像周围,就像使用 Microsoft Word 使用 Wrapping Style -> Square 完成的一样,当您右键单击image 格式 图片 -> 布局

请注意,我只希望使用 UITextView,使用 CoreText 没有问题

提前谢谢你,

【问题讨论】:

    标签: ios uitextview core-text word-wrap


    【解决方案1】:

    您可以使用CTFrame 类以及相关的CTFrameSetter 类来围绕图像创建路径并环绕文本。

    这里有一篇相关文章:http://blog.amyworrall.com/post/11098565269/text-wrap-with-core-text

    以及相关的 SO 问题/答案:Dynamically wrapping text around multiple UIImageView

    【讨论】:

      猜你喜欢
      • 2012-01-14
      • 2010-09-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-11-27
      相关资源
      最近更新 更多