Unable to simultaneously satisfy constraints - No constraints in place

前端 未结 10 2014
野的像风
野的像风 2020-11-28 02:36

I have gone through and removed every single user constraint yet I am still getting the following error ONLY after I rotate the device. I have absolutely no

10条回答
  •  遥遥无期
    2020-11-28 03:17

    Its worth knowing the basics, and understand what Apple/Xcode is trying to tell you through the logs

    H = Horizontal constraint(for leading and Trailing)
    V = Vertical constraint(top and bottom edge)
    h = height
    w = width
    
    TopEdge    -> V:|-(points)-[VIEW:memoryAddress] 
    BottomEdge -> V:[VIEW:memoryAddress]-(points)-|
    Leading    -> H:|-(points)-[VIEW:memoryAddress] 
    Trailing   -> H:[VIEW:memoryAddress] -(points)-|
    height     -> h= --& v=--& V:[VIEW:memoryAddress((points)] 
    width      -> VIEW:memoryAddress.width == points 
    between    -> H:[VIEW 1]-(51)-[VIEW 2] 
    

    Once you understand this, reading your specific error is pretty easy

提交回复
热议问题