修改控件约束优先级,崩溃报错:You passed priority 1000 and the existing priority was 750.
来源:互联网 发布:苹果手机估价淘宝 编辑:程序博客网 时间:2024/05/17 05:51
最近项目迭代,针对特定商品做双11的活动,实现商品参加活动时,价格_priceLabel前面展示活动图标_activityIcon,商品不参加活动时,隐藏_activityIcon,_priceLabel与商品名称左对齐。如图:
要实现这个功能,需要在 xib 里给_priceLabel设置两个关键的约束: Price Label Leading Name Label
Contraint,优先级为750 Price Label Leading Activity Icon Contraint,优先级为1000
代码:
然后就崩溃了,描述为:
原因是,优先级以1000位界限: 不允许将优先级由小于1000的值改为1000 不允许将优先级由1000修改为小于1000的值
所以应该把Price Label Leading Activity Icon Contraint,优先级改为999(不等于1000)
代码改为:
阅读全文
0 0
- 修改控件约束优先级,崩溃报错:You passed priority 1000 and the existing priority was 750.
- Priority
- Priority Inversion:优先级反转
- 优先级队列 priority queue
- Priority Queue 优先级队列
- 优先级队列(Priority Queue)
- Priority Inversion - 优先级翻转
- Rabbitmq priority 优先级
- Rabbitmq priority 优先级
- 修改centos 7.0 的yum源优先级priority
- SystemVerilog:: Unique and Priority
- severity and priority举例
- Heap and Priority Queues
- java 线程的优先级Priority
- Priority Queues优先级队列详解
- 优先级倒置(Priority inversion)
- Linux priority and nice value
- Signaling Semaphores and Priority Inheritance
- 简单日食效果实现
- 普元EOSPlatform7.5补丁列表
- linux命令及命令缩写的意思
- mysql load data infile之bit类型数据的处理
- 链式前向星
- 修改控件约束优先级,崩溃报错:You passed priority 1000 and the existing priority was 750.
- 4.线程调度
- 第五周项目一
- 5.常用函数说明
- 18.Java转义字符
- patch 的生成与合入
- 分库分表的几种常见玩法及如何解决跨库查询等问题
- Connot resolve Symbol '.......'
- Ubuntu 14.10安装simplescalar