Probably at least one of the constraints in the following list is one you don't want.
这个提示并不是出错,不理会它我的程序也没出现什么问题
但是处于强迫症,还是努力寻找解决的方法。。。
最终发现问题如下:
在xib各种绘制和添加约束的UITableViewCell之后,在某一特定情况想要隐藏这个Cell,于是我就在UITableView的
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath方法中返回0,所以出现了这个提示!
这里需要注意到一个问题:
有些人可能会想到通过reloadData方法,然后在
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath方法中return nil来实现隐藏这个Cell,
这样是行不通的。。会报错!
我的解决方法如下:
就是另外创建一个什么内容都没有的Cell来取代这个要隐藏的Cell,然后在
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath方法中返回0即可。
Probably at least one of the constraints in the following list is one you don't want.相关推荐
- R语言构建xgboost模型:指定特征交互方式、单调性约束的特征、获取模型中的最终特征交互形式(interaction and monotonicity constraints)
R语言构建xgboost模型:指定特征交互方式.单调性约束的特征.获取模型中的最终特征交互形式(interaction and monotonicity constraints) 目录
- Advanced Auto Layout:Programmatically Creating Constraints
Programmatically Creating Constraints以编程方式创建约束 Whenever possible, use Interface Builder to set your ...
- 解决eclipse+MAVEN提示One or more constraints have not been satisfied.的问题
解决eclipse+MAVEN提示One or more constraints have not been satisfied.的问题 参考文章: (1)解决eclipse+MAVEN提示One o ...
- SQL高级---SQL 约束 (Constraints)
SQL 约束 (Constraints) SQL 约束 约束用于限制加入表的数据的类型. 可以在创建表时规定约束(通过 CREATE TABLE 语句),或者在表创建之后也可以(通过 ALTER TA ...
- error: goland --build constraints exclude all Go files
首先,//+build将逐渐取代//go:build,在Go Version1.16-1.18作为过渡期,两种注释都可以使用.参见官网https://www.jetbrains.com/help/go ...
- oracle中constraints,oracle constraints(2)
oracle 约束的状态 oracle在创建约束后默认状态是enabled VALIDATED SQL> create table T2 2 ( 3 VID NUMBER, 4 VNAME VA ...
- Unable to simultaneously satisfy constraints.
开发版本 7.0 @property(nonatomic) BOOL translatesAutoresizingMaskIntoConstraints NS_AVAILABLE_IOS(6_0); ...
- maven项目,提示One or more constraints have not been satisfied
环境 JDK 1.8 Eclipse 4.7(javaee) Eclipse Tomcat server plugin Maven 3.5 问题现象 显示错误:One or more constrai ...
- SQLite 入门教程(三)好多约束 Constraints
一.约束 Constraints 在上一篇随笔的结尾,我提到了约束, 但是在那里我把它翻译成了限定符,不太准确,这里先更正一下,应该翻译成约束更贴切一点. 那么什么是约束呢? 我们在数据库中存储数据的 ...
- 自动布局报错(两条连线冲突):Unable to simultaneously satisfy constraints
这个报错有些长: Unable to simultaneously satisfy constraints. Probably at least one of the constraints ...
最新文章
- 利用计算机进行机械设计属于什么,计算机技术机械设计应用
- 第一天学习Android的一些笔记
- spark task和stage划分原理
- windows快捷键命令汇总整理
- poj 3083 DFS
- Beaglebone Back学习三(开发环境搭建)
- MFC对话框播放8位512*512的像素数据
- CodeForces 518E Arthur and Questions(贪心 + 思维)题解
- 什么是狭义人工智能、通用人工智能和超级人工智能?
- 40题计算机程序设计基础(C语言)编程习题
- keras神经网络搭建六步法
- 华为设备MSTP配置命令
- 位,字节,字符的区别是什么?
- 基于Linux Rational Performance Tester自动化测试研究
- 新型城镇化提质扩容 打造民村智慧城市
- Qt Creator插件ToDo
- 阿里免费网盘teambition使用初体验
- FBE 与FDE学习总结
- STM32 JTAG SWD (PB3 PB4用作普通IO)及启动模式
- 查询局域网内在线电脑IP地址