摘要: // 取出上一条数据 CZMessageFrame *lastMessageFrame = [arrayM lastObject];// 上一条数据 CZMessage *preMessage = lastMessageFrame.message; if... 阅读全文
posted @ 2016-01-08 16:22 zhen_zhen 阅读(139) 评论(0) 推荐(0) 编辑
摘要: .h#import @interface NSString (Extension)/*** 根据最大尺寸和字体计算文字的实际尺寸*/- (CGSize) sizeWithMaxSize:(CGSize) maxSize andFont:(UIFont *) font;@end.m#import "N... 阅读全文
posted @ 2016-01-08 16:10 zhen_zhen 阅读(256) 评论(0) 推荐(0) 编辑
摘要: 转 KVC中setValuesForKeysWithDictionary:从字典映射到一个对象,这是KVC中的一个方法所提供的,这个方法就是 setValuesForKeysWithDictionary: ,非常好用,不需要你来一一的给对象赋值而直接从字典初始化即可,但用的不好会经常崩溃,本教程就来... 阅读全文
posted @ 2016-01-08 16:05 zhen_zhen 阅读(144) 评论(0) 推荐(0) 编辑
摘要: /*** 大图功能*/- (IBAction)big {// 1.添加阴影 UIButton *cover = [[UIButton alloc]init]; cover.frame = self.view.bounds; [self.view addSubview:cover]; cov... 阅读全文
posted @ 2016-01-08 15:48 zhen_zhen 阅读(107) 评论(0) 推荐(0) 编辑
摘要: // 清空上一次的按钮 for (UIButton *answerBtn in self.answerView.subviews) { [answerBtn removeFromSuperview]; }for (UIView *view in cell.contentView.sub... 阅读全文
posted @ 2016-01-08 15:45 zhen_zhen 阅读(120) 评论(0) 推荐(0) 编辑
摘要: #import "TimeCollectionCell.h" #import typedef void (^ReturnBlock)(NSString *showText);@interface TimeCollectionCell : UICollectionViewCell@property ... 阅读全文
posted @ 2016-01-08 14:44 zhen_zhen 阅读(310) 评论(0) 推荐(0) 编辑
摘要: //病例种类 button-(void)illcaseBtnClick{ if (isComboBoxHide==NO) { _comboBox.hidden = NO; isComboBoxHide=YES; } else{ _comboBox.hidden = YES; ... 阅读全文
posted @ 2016-01-08 13:58 zhen_zhen 阅读(167) 评论(0) 推荐(0) 编辑
摘要: UIButton *btn=(UIButton *)[self.view viewWithTag:10]; 阅读全文
posted @ 2016-01-08 09:26 zhen_zhen 阅读(97) 评论(0) 推荐(0) 编辑
摘要: -(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ //打印动画块的位置 NSLog(@"动画执行之前的位置:%@",NSStringFromCGPoint(self.customView.center)); ... 阅读全文
posted @ 2016-01-08 09:22 zhen_zhen 阅读(139) 评论(0) 推荐(0) 编辑
摘要: //// activityViewController.m// toolbar//// Created by Apple on 16/1/7.// Copyright © 2016年 ShangYu. All rights reserved.//#import "activityViewContro... 阅读全文
posted @ 2016-01-07 17:44 zhen_zhen 阅读(123) 评论(0) 推荐(0) 编辑