forkingdog / UITableView-FDTemplateLayoutCell

Template auto layout cell for automatically UITableViewCell height calculating
MIT License
9.94k stars 2.01k forks source link

多个lable 某个lable高度计算过高, #395

Open wenchao5211 opened 5 years ago

wenchao5211 commented 5 years ago

当cell里存在多个lable的时候,用xib从上到下布局,会出现中间的lable高度计算过高,导致整个cell高度错乱

AppLog commented 5 years ago

嗯,确实存在这个问题。

liucw1993 commented 4 years ago

我是通过设置label的preferredMaxLayoutWidth参数解决的

Tioks commented 4 years ago

preferredMaxLayoutWidth 亲测有效

wenchao5211 commented 4 years ago

感谢,这个找到资料弄了好久,后来没把问题撤回

发自我的iPhone

------------------ 原始邮件 ------------------ 发件人: Guo Yu <notifications@github.com> 发送时间: 2020年4月24日 16:39 收件人: forkingdog/UITableView-FDTemplateLayoutCell <UITableView-FDTemplateLayoutCell@noreply.github.com> 抄送: 大太阳 <853724284@qq.com>, Author <author@noreply.github.com> 主题: 回复:[forkingdog/UITableView-FDTemplateLayoutCell] 多个lable 某个lable高度计算过高, (#395)

preferredMaxLayoutWidth 亲测有效

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.