zoukankan      html  css  js  c++  java
  • 第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/

  • 相关阅读:
    安装Maatwebsite EXCEL ExcelServiceProvider
    scrapy 运行时报错 No module named _sqlite3
    bash: scrapy: command not found
    升级完pip后出错:Traceback (most recent call last): File "/usr/bin/pip", line 11, in <module> sys.exit(__main__.main())
    装系统的一些总结(一)
    [C#基础知识系列]专题十:全面解析可空类型[转]
    C# winform与Javascript的相互调用[转]
    C# 基础知识和VS2010的小技巧总汇(2)[转]
    FileStream和BinaryReader,BinaryWriter,StreamReader,StreamWriter的区别
    C# 基础知识和VS2010的小技巧总汇
  • 原文地址:https://www.cnblogs.com/javastart/p/7656679.html
Copyright © 2011-2022 走看看