<legend id='SiKPQ'><style id='SiKPQ'><dir id='SiKPQ'><q id='SiKPQ'></q></dir></style></legend>

      <i id='SiKPQ'><tr id='SiKPQ'><dt id='SiKPQ'><q id='SiKPQ'><span id='SiKPQ'><b id='SiKPQ'><form id='SiKPQ'><ins id='SiKPQ'></ins><ul id='SiKPQ'></ul><sub id='SiKPQ'></sub></form><legend id='SiKPQ'></legend><bdo id='SiKPQ'><pre id='SiKPQ'><center id='SiKPQ'></center></pre></bdo></b><th id='SiKPQ'></th></span></q></dt></tr></i><div id='SiKPQ'><tfoot id='SiKPQ'></tfoot><dl id='SiKPQ'><fieldset id='SiKPQ'></fieldset></dl></div>
    1. <tfoot id='SiKPQ'></tfoot>

      <small id='SiKPQ'></small><noframes id='SiKPQ'>

        <bdo id='SiKPQ'></bdo><ul id='SiKPQ'></ul>
    2. 在文本 Swift 末尾显示更多按钮

      Show more button next to end of text Swift(在文本 Swift 末尾显示更多按钮)

            <bdo id='XYj28'></bdo><ul id='XYj28'></ul>

              <small id='XYj28'></small><noframes id='XYj28'>

              <i id='XYj28'><tr id='XYj28'><dt id='XYj28'><q id='XYj28'><span id='XYj28'><b id='XYj28'><form id='XYj28'><ins id='XYj28'></ins><ul id='XYj28'></ul><sub id='XYj28'></sub></form><legend id='XYj28'></legend><bdo id='XYj28'><pre id='XYj28'><center id='XYj28'></center></pre></bdo></b><th id='XYj28'></th></span></q></dt></tr></i><div id='XYj28'><tfoot id='XYj28'></tfoot><dl id='XYj28'><fieldset id='XYj28'></fieldset></dl></div>
              • <legend id='XYj28'><style id='XYj28'><dir id='XYj28'><q id='XYj28'></q></dir></style></legend><tfoot id='XYj28'></tfoot>
                  <tbody id='XYj28'></tbody>

                本文介绍了在文本 Swift 末尾显示更多按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                如果空间不足,我想在文本末尾或下方显示更多按钮.我不明白苹果开发者是怎么做到的?请迅速回答.单击更多按钮后,我想显示所有文本.将按钮更改为更少.

                I want to show more button at the end of the text or below if there isn't enough space. I don't understand how Apple developers did this? Please answer in swift. After clicking on more button i want to show all the text. change the button to less.

                提前致谢.

                推荐答案

                这是一个很棒的 CocoaPod,可以满足您正在寻找的功能.

                Here's a great CocoaPod for the functionality you're looking for.

                https://github.com/ilyapuchka/ReadMoreTextView

                这将允许您设置最大行数并自定义附加到修剪文本末尾的文本.您可以更改字体和颜色,因为它是 NSAttributedString.

                This will allow you to set a maximum number of lines and customise the text append to the end of the trimmed text. You can change the font and color since it is an NSAttributedString.

                这篇关于在文本 Swift 末尾显示更多按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                UIButton title text color(UIButton 标题文本颜色)
                Stretch background image for UIButton(为 UIButton 拉伸背景图像)
                Using Tint color on UIImageView(在 UIImageView 上使用 Tint 颜色)
                How can I change UIButton title color?(如何更改 UIButton 标题颜色?)
                iPhone UIButton - image position(iPhone UIButton - 图像位置)
                UIButton remove all target-actions(UIButton 删除所有目标动作)

                      <i id='6dm3d'><tr id='6dm3d'><dt id='6dm3d'><q id='6dm3d'><span id='6dm3d'><b id='6dm3d'><form id='6dm3d'><ins id='6dm3d'></ins><ul id='6dm3d'></ul><sub id='6dm3d'></sub></form><legend id='6dm3d'></legend><bdo id='6dm3d'><pre id='6dm3d'><center id='6dm3d'></center></pre></bdo></b><th id='6dm3d'></th></span></q></dt></tr></i><div id='6dm3d'><tfoot id='6dm3d'></tfoot><dl id='6dm3d'><fieldset id='6dm3d'></fieldset></dl></div>

                    • <tfoot id='6dm3d'></tfoot>
                      <legend id='6dm3d'><style id='6dm3d'><dir id='6dm3d'><q id='6dm3d'></q></dir></style></legend>

                        <small id='6dm3d'></small><noframes id='6dm3d'>

                          <tbody id='6dm3d'></tbody>
                        • <bdo id='6dm3d'></bdo><ul id='6dm3d'></ul>