Why sometimes UIView appears only when it's frame's CGRect defined and not when width and height defined in NSLayoutConstriant?

前端 未结 0 526
粉色の甜心
粉色の甜心 2020-11-28 01:38

Most of the times i draw my views like this :

let someView = UIView()
    view.addSubview(someView)
    someView.translatesAutoresizingMaskIntoConstraints = f         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题