A multiplier of 0 or a nil second item together with a location for the first attribute creates an i
2015-12-28 19:43
1366 查看
今天遇到这个问题。百度了一下,有的说是 某个view 为nil,但是是我的情况不是。还是因为英语水平差啊。错误已经很明显的告诉我了
A multiplier of 0 or a nil second item together with a location for the first attribute creates an illegal constraint of a location equal to a constant. Location attributes must be specified in pairs'
乘数(0)或零第二项与位置的第一个属性创建一个非法约束位置等于一个常数。位置属性必须指定成对的
[NSLayoutConstraint
constraintWithItem:self.frontimage
attribute:NSLayoutAttributeTrailing
relatedBy:NSLayoutRelationEqual
toItem:self
attribute:NSLayoutAttributeTrailing
multiplier:1.0 constant:0]
中的 multiplier 不能为0 。
A multiplier of 0 or a nil second item together with a location for the first attribute creates an illegal constraint of a location equal to a constant. Location attributes must be specified in pairs'
乘数(0)或零第二项与位置的第一个属性创建一个非法约束位置等于一个常数。位置属性必须指定成对的
[NSLayoutConstraint
constraintWithItem:self.frontimage
attribute:NSLayoutAttributeTrailing
relatedBy:NSLayoutRelationEqual
toItem:self
attribute:NSLayoutAttributeTrailing
multiplier:1.0 constant:0]
中的 multiplier 不能为0 。
相关文章推荐
- 电商网站模板
- 整理的一些MySQL中排名查询的语句
- Splay学习总结
- 【ASP.NET 进阶】根据IP地址返回对应位置信息
- php中bindValue的批量提交sql语句
- Android ADB命令大全
- (默认)欢迎使用CSDN-markdown编辑器
- Spring MVC与mybatis学习-----参数配置文件说明
- C语言项目总结
- HTML5 新特性总结
- 终端命令别名
- 京东商品详情页应对“双11”大流量的技术实践
- 20151228 ocp 053 1-30
- poi导出excel,以字符串格式输出数字
- poi导出excel,以字符串格式输出数字
- ios 防止按钮快速点击造成多次响应的避免方法。
- java学习第12天
- ASP.NET请求管道、应用程序生命周期、整体运行机制
- 基于HTML5的Web SCADA工控移动应用
- 杭电2122 HDU Today (最短路 dijkstra 过)