• 第13月第12天 Constraints priority


    1.Constraints priority

    将evInputView的高度约束的priority设为750,evInputView的inputTextView如果不设高度约束,那么高度就是defaultInputViewH,如果设了高度,那么就是这个高度.

            evInputView.snp.remakeConstraints { (make) in

                make.left.right.equalTo(0)

                make.bottom.equalTo(bottom)

                make.height.equalTo(defaultInputViewH).priority(750)

            }

     

     

            inputTextView.snp.remakeConstraints { (make) in

                make.top.equalTo(textViewFrame.top)

                make.bottom.equalTo(textViewFrame.bottom)

                make.left.equalTo(textViewFrame.left)

                make.right.equalTo(textViewFrame.right)

            }

     

            inputTextView.snp.remakeConstraints { (make) in

                make.top.equalTo(textViewFrame.top)

                make.bottom.equalTo(textViewFrame.bottom)

                make.left.equalTo(textViewFrame.left)

                make.right.equalTo(textViewFrame.right)

                make.height.equalTo(height)

            }

     

     

    https://segmentfault.com/a/1190000004650551

    https://github.com/February12/YLBaseChat/

  • 相关阅读:
    职场利器:说服力书籍排行榜
    经商必读的6本书推荐
    有关企业文化的书籍推荐
    创业书籍推荐
    企业文化建设的基本内容和主要步骤
    沟通书籍排行榜推荐
    企业文化建设案例与方案分享
    如何提高个人领导力?
    Project Recording: Date and Factory Date[转载]
    SAP Control framework–实例
  • 原文地址:https://www.cnblogs.com/javastart/p/7656679.html
Copyright © 2020-2023  润新知