"专家来了",后天周五提测,跟组长沟通
Nsstring *str = yes ? @"hhh" : @"yyy";
一开始图片文件夹层次结构不对, 当你把图片拖进去,就对了, 一开始没有内容,所以位置不对
uitableview group模式顶部有个空白
// 时间日期蓝条
// 计算imageView长度
NSString *dotaLocationString = @"4/15日在呼伦贝尔";
CGFloat labelWidth = [dotaLocationString sizeWithFont:kFontWithSize(11) constrainedToSize:CGSizeMake(MAXFLOAT, 20)].width;
dateLocationImageView =[[UIImageView alloc]init];
[self.contentView addSubview:dateLocationImageView];
[dateLocationImageView mas_makeConstraints:^(MASConstraintMaker *make) {
make.right.mas_equalTo(0);
make.width.mas_equalTo(labelWidth + 16); // 132
make.height.mas_equalTo(20);
make.top.mas_equalTo(self.contentView).offset(12);
}];
UIImage * image = [UIImage imageNamed:@"推荐热度背景"];
UIEdgeInsets insets = UIEdgeInsetsMake(0, 10, 0, 0);
// 指定为拉伸模式,伸缩后重新赋值
image = [image resizableImageWithCapInsets:insets resizingMode:UIImageResizingModeStretch];
dateLocationImageView.image = image;
dataLocationLabel = [UILabel hdf_labelWithText:@"4/15日在呼伦贝尔" superView:dateLocationImageView constraints:^(MASConstraintMaker *make) {
make.left.mas_equalTo(8);
make.centerY.mas_equalTo(dateLocationImageView);
}];
dataLocationLabel.font = [UIFont systemFontOfSize:11];
dataLocationLabel.textColor = [UIColor whiteColor];
--------
降低约束优先级
价格被挤压了, 降低约束优先级,解决问题
// 价格label
priceLabel = [UILabel hdf_labelWithText:@"¥1000"
textColor:kAssistOrangeColor
font:kFontWithSize(12)
superView:self.contentView
constraints:^(MASConstraintMaker *make) {
make.right.mas_equalTo(preTimeLabel.mas_left).offset(1);
make.baseline.mas_equalTo(preTimeLabel);
}];
// 职称
doctorProfessionRank = [UILabel hdf_labelWithText:@"职称safdsafasfasfsadfasfsafaaf"
textColor:kColorWith16RGB(0x646464)
font:kFontWithSize(12)
superView:self.contentView constraints:^(MASConstraintMaker *make) {
make.left.equalTo(doctorName);
make.top.equalTo(doctorName.mas_bottom).offset(5);
make.right.equalTo(priceLabel.mas_left).offset(-15).priority(750);
}];
------
collectionView cell方法 不调用,因为collectionView的frame不对
// _collectionView = [[UICollectionView alloc]initWithFrame:self.collectionViewContainerView.bounds collectionViewLayout:self.flowLayout]; // bouns出不来
_collectionView = [[UICollectionView alloc]initWithFrame:CGRectMake(0, 0, SCREEN_W, self.collectionViewContainerView.width) collectionViewLayout:self.flowLayout]; // 这样能出来!!
------
view没有加载上来,因为下划线变量没有调用懒加载
"专家来了",后天周五提测,跟组长沟通的更多相关文章
- POPTEST老李推荐:互联网时代100本必读书,来自100位业界大咖推荐 2
➤NO.30<移动的力量>[推荐人]刘九如:电子工业出版社副社长兼总编辑邬贺铨:中国工程院院士.原副院长汪力成:华立集团董事局主席➤NO.31<智慧社会>[推荐人]段永朝:财讯 ...
- 天府大讲堂:5G时代的物联网发展趋势与产业变革
摘要:国家973物联网首席科学家,中科院上海微系统与信息技术研究所副所长,无锡物联网产业研究院院长刘海涛教授讲授的5G时代的物联网发展趋势与产业变革意义深刻.作者根据天府大讲堂听讲内容加工整理所得,旨 ...
- 【 腾讯敏捷转型No.4 】为什么敏捷团队不要超过15人
早期,腾讯公司的架构是比较简单的.从上至下分别是:公司——商业单元(BU)——部门——组——员工,每个部门基本上就是负责一个大的产品,每个组都是按照专业进行分工和管理,例如:产品组.终端组.后台组.设 ...
- 敏捷软件开发VS传统软件工程
敏捷软件开发:又称敏捷开发,是一种从1990年代开始逐渐引起广泛关注的一些新兴软件开发方法,是一种应对快速变化的需求的一种软件开发能力. 与传统软件工程相比,它们的具体名称.理念.过程.术语都不尽相同 ...
- 传统开发模型vs敏捷开发模型——过程模型的变革
一.概念框架 在了解一个新概念的时候,最好的方法就是把它插入到原有的概念体系中.在不仅有助于对概念的记忆,更利于深刻地认识概念的本质.精髓.下图说明了"敏捷开发"在软件工程理论体系 ...
- 敏捷开发系列之旅 第二站(走近XP极限编程)
http://blog.csdn.net/happylee6688/article/details/21551065 上篇文章,我们探讨了什么是敏捷开发,以及敏捷开发的方法学.在这篇文章中,我们将继续 ...
- 和团队齐头并进——敏捷软件开发的Scrum的学习
敏捷开发的介绍 概念 更强调程序员团队与业务专家之间的紧密协作.面对面的沟通(认为比书面的文档更有效).频繁交付新的软件版本.紧凑而自我组织型的团队.能够很好地适应需求变化的代码编写和团队组织方法,也 ...
- <自动化测试方案_9>第九章、持续集成平台搭建
第九章.持续集成平台搭建 (一)什么是持续集成 参考文章地址:https://blog.csdn.net/qq_32261399/article/details/76651376 敏捷软件开发(英语: ...
- CI/CD持续集成/持续部署 敏捷开发
敏捷软件开发(英语:Agile software development),又称敏捷开发,是一种从1990年代开始逐渐引起广泛关注的一些新型软件开发方法,是一种应对快速变化的需求的一种软件开发能力.它 ...
随机推荐
- h5 canvas 画图
h5 canvas 画图 <!DOCTYPE html> <html lang="en"> <head> <meta charset=&q ...
- ThinkPHP3.2判断是否为手机端访问并跳转到另一个模块的方法
目录结构 公共模块Common,Home模块,Mobile模块 配置Application/Common/Conf/config.php文件 'MODULE_ALLOW_LIST' => 'Ho ...
- PHP多文件上传类
<?php class Upload{ var $saveName;// 保存名 var $savePath;// 保存路径 var $fileFormat = array('gif','jpg ...
- 谈谈“色彩空间表示方法”——RGB、YUY2、YUYV、YVYU、UYVY、AYUV
转自:http://bbs.chinavideo.org/viewthread.php?tid=4143 还可参考http://www.fourcc.org/yuv.php 小知识:RGB与YUV-- ...
- UVALive 6885 Flowery Trails 最短路枚举
题目连接: http://acm.hust.edu.cn/vjudge/problem/visitOriginUrl.action?id=129723 题意: 给你一个n点m图的边 1到n有多条最短路 ...
- Codeforces Round #Pi (Div. 2) C. Geometric Progression map
C. Geometric Progression Time Limit: 2 Sec Memory Limit: 256 MB 题目连接 http://codeforces.com/contest/5 ...
- XML基础总结2
在上篇的博客中,我们系统的介绍了一下xml与html之间的异同以及一部分xml的特性或者说是优点,接下来,我们就xml文档的一些语法规则具体向大家阐述一下: 1.xml文档形成了一种"树结构 ...
- 初识view
屏幕左上角为原点,向右为 x 轴, 向下为 y 轴. getLeft getTop getRight getBottom 分别返回 view 的左上右下的坐标,这里的坐标都是相对于view的父view ...
- CentOS6.4 利用sendEmail发邮件
1.下载安装sendEmail wget http://caspian.dotconf.net/menu/Software/SendEmail/sendEmail-v1.56.tar.gz tar z ...
- Codeforces Round #208 (Div. 2) A.Dima and Continuous Line
#include <iostream> #include <algorithm> #include <vector> using namespace std; in ...