摘要: // // PopularizaOfScience.m // Patient // // Created by y on 15/11/4. // Copyright © 2015年 ShangYu. All rights reserved. // #import "PopularizaOfScien 阅读全文
posted @ 2016-05-06 16:07 zhen_zhen 阅读(965) 评论(0) 推荐(0) 编辑
摘要: if (SCREEN_WIDTH == 320) { if (tabMut.count<=3 && tabMut.count>=1) { _collectionView.height = 50; }else if (tabMut.count <=6 && tabMut.count>3) { if ( 阅读全文
posted @ 2016-05-06 15:57 zhen_zhen 阅读(173) 评论(0) 推荐(0) 编辑
摘要: //kvo0506 // [_collectionView addObserver:self forKeyPath:@"frame" options:NSKeyValueObservingOptionNew context:nil]; //kvo0506 -(void)observeValueFor 阅读全文
posted @ 2016-05-06 15:15 zhen_zhen 阅读(128) 评论(0) 推荐(0) 编辑
摘要: // UICollectionViewCell *cell = [collectionView cellForItemAtIndexPath:indexPath]; // MCLog(@"cell =%zd,=cell frame%@",index,NSStringFromCGRect(cell.f 阅读全文
posted @ 2016-05-06 10:55 zhen_zhen 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 打印CGRect时用NSStringFromCGRect 打印CGRect时用NSStringFromCGRect 2012-11-24 11:01 7819人阅读 评论(0) 收藏 举报 2012-11-24 11:01 7819人阅读 评论(0) 收藏 举报 转载自:http://blog.si 阅读全文
posted @ 2016-05-06 09:42 zhen_zhen 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 在这个例子中,当改变picker值的时候,Cell中的值也跟着改变。以前就一直很纠结怎么获取选中的Cell,看过这个例子后,真是豁然开朗呀! 这个例子里用到了一个方法:indexPathForSelectedRow,用这个方法就能获取选择的cell了--!以前怎么没发现... 关键代码: - (IB 阅读全文
posted @ 2016-05-06 09:41 zhen_zhen 阅读(773) 评论(0) 推荐(0) 编辑
摘要: // if (isRequest) { // MCLog( @" 第几个呢?==%zd",index); // // if (tabMut.count -1 == index) { // CGFloat labelY = CGRectGetMaxY(labell.frame) ; // MCLog( 阅读全文
posted @ 2016-05-06 09:28 zhen_zhen 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 2016-05-06 08:48:29.825 Patient[1212:36189] 23 2016-05-06 08:48:48.328 Patient[1212:36189] keypath:frame 2016-05-06 08:48:48.379 Patient[1212:36189] o 阅读全文
posted @ 2016-05-06 09:19 zhen_zhen 阅读(218) 评论(0) 推荐(0) 编辑