问题描述
我有一个表格视图和里面的两个标签.第二个标签(描述标签)有数百行.当我将描述标签的字体大小设置为 21 时,它正在工作.当我将字体大小更改为 25 时,为什么描述标签会消失?如何解决?我还设置了自动调整单元格高度以增加尺寸.
描述标签属性检查器另外代码截图是
尺寸为 25 时消失标签的图像
标签仅在框架低于 8000 时显示文本,并且不显示更多文本.
对于较低的标签设置这个.
并且在属性检查器中将两个标签的 lines 设置为 0.并请实现索引行的高度和估计的高度 tableview 代表.
I have a table view and two labels inside it. The second label(description label) has Hundreds of line. when I set font size of description label to 21 it's working. Why description label goes to dissappear when I am changing font size to 25? How to resolve it? I have also set auto resize cell height for increase size.
description label attribute inspector alse code screenshot is
image for disappear label when size is 25
label only show text when frame is under 8000 and for more text is not showing.
github link for problem
@dineshsharma.. Lets try this one and let me know if you are still facing the problem. This is for top label.
And for lower label set this.
And in attribute inspector set lines to 0 for both labels. And please implement height for row at index and estimated height tableview delegates.
这篇关于在 Swift 中将字体大小更改为 25 时标签消失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!


大气响应式网络建站服务公司织梦模板
高端大气html5设计公司网站源码
织梦dede网页模板下载素材销售下载站平台(带会员中心带筛选)
财税代理公司注册代理记账网站织梦模板(带手机端)
成人高考自考在职研究生教育机构网站源码(带手机端)
高端HTML5响应式企业集团通用类网站织梦模板(自适应手机端)