小编cld*_*dev的帖子

Autolayout约束警告"将试图通过打破约束来恢复"

我正在尝试实施新闻提要(不知何故像没有评论或喜欢的Instagram).它工作,但xcode继续显示此错误.我尝试改变所有约束,然而,我无法开始工作.tableview的高度为475,图像的高度为400,带有标签的白色区域为75.

我确实用过

self.tableView.estimatedRowHeight = 475;
self.tableView.rowHeight = UITableViewAutomaticDimension;
Run Code Online (Sandbox Code Playgroud)

有帮助吗?

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. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) 
(

    "<NSLayoutConstraint:0x174096530 …
Run Code Online (Sandbox Code Playgroud)

xcode objective-c uitableview ios autolayout

5
推荐指数
1
解决办法
5668
查看次数

标签 统计

autolayout ×1

ios ×1

objective-c ×1

uitableview ×1

xcode ×1