AutoLayout, Unable to simultaneously satisfy constraints

前端 未结 6 472
粉色の甜心
粉色の甜心 2020-12-02 08:22

Just started learning iOS AutoLayout, Interface builder very straight forward, but when I try to archive the same thing on the code

    [self.view addConstr         


        
6条回答
  •  北荒
    北荒 (楼主)
    2020-12-02 09:12

    In case anyone else runs into this, an easy way to visually check for problems with your constraints is this site (it's really useful!):

    http://www.wtfautolayout.com

    Here's the Github project in case the site goes down: https://github.com/johnpatrickmorgan/wtfautolayout

提交回复
热议问题