美文网首页
Warning once only: Cannot get a

Warning once only: Cannot get a

作者: 度渡立 | 来源:发表于2018-11-09 17:33 被阅读0次

    Masonry 和 FDTemplateLayoutCell 搭配使用「UITableview 自适应内容高度」一不小心就会报这个错误,这个提示:

    1.约束不闭合

    2.检查在cell中是否存在self addSubView!!!应该是self.contentView addSubView,写着写着就写顺手了。。

    关于这两者混合使用来自适应的传送门:

    1:iOS Masonry约束自定义TableViewCell自适应行高的约束冲突的问题:https://blog.csdn.net/kuangdacaikuang/article/details/78805615

    2:iOS自动布局框架之Masonry:https://cloud.tencent.com/developer/article/1029651

    3:Masonry 和 FDTemplateLayoutCell 搭配使用「UITableview 自适应内容高度」:https://juejin.im/post/58be10b6ac502e006b263695

    4:Taste UITableView+FDTemplateLayoutCell(一):https://juejin.im/post/5aa5ea2f6fb9a028dc40a7f6

    5:UIView系列之---iOS的动态高度:http://hchong.net/2017/09/24/UIView%E7%B3%BB%E5%88%97%E4%B9%8B---iOS%E7%9A%84%E5%8A%A8%E6%80%81%E9%AB%98%E5%BA%A6/

    6:iOS Autolayout 之 Masonry 使用:https://juejin.im/post/5ac34f9351882555867f9f12

    相关文章

      网友评论

          本文标题:Warning once only: Cannot get a

          本文链接:https://www.haomeiwen.com/subject/jcioxqtx.html