日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

自动布局报错(两条连线冲突):Unable to simultaneously satisfy constraints

發(fā)布時間:2024/4/13 编程问答 33 豆豆
生活随笔 收集整理的這篇文章主要介紹了 自动布局报错(两条连线冲突):Unable to simultaneously satisfy constraints 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

?這個報錯有些長:

Unable to simultaneously satisfy constraints.
?? ?Probably at least one of the constraints in the following list is one you don't want.
?? ?Try this:
?? ??? ?(1) look at each constraint and try to figure out which you don't expect;
?? ??? ?(2) find the code that added the unwanted constraint or constraints and fix it.
(
??? "<NSLayoutConstraint:0x600000096580 H:[UIButton:0x7fc8eb408a50'Button']-(2)-|?? (active, names: '|':UIView:0x7fc8eb40d330 )>",
??? "<NSLayoutConstraint:0x600000096670 H:[UIButton:0x7fc8eb408a50'Button']-(3)-|?? (active, names: '|':UIView:0x7fc8eb40d330 )>"
)

Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x600000096670 H:[UIButton:0x7fc8eb408a50'Button']-(3)-|?? (active, names: '|':UIView:0x7fc8eb40d330 )>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.

?

我的報錯原因: 就是同意的邊距連了兩條線(2 conflicting constrains);

???????????????????

?????????????????? 點擊 黃色的警告(??),找到?jīng)_突的線,檢查,很容易找到問題。

?

?       之前好像是直接顯示紅色報錯的,now是 黃色警告?

轉(zhuǎn)載于:https://www.cnblogs.com/code-Officer/p/6258669.html

總結(jié)

以上是生活随笔為你收集整理的自动布局报错(两条连线冲突):Unable to simultaneously satisfy constraints的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。