摘要:
// 取出上一条数据 CZMessageFrame *lastMessageFrame = [arrayM lastObject];// 上一条数据 CZMessage *preMessage = lastMessageFrame.message; if... 阅读全文
摘要:
.h#import @interface NSString (Extension)/*** 根据最大尺寸和字体计算文字的实际尺寸*/- (CGSize) sizeWithMaxSize:(CGSize) maxSize andFont:(UIFont *) font;@end.m#import "N... 阅读全文
摘要:
转 KVC中setValuesForKeysWithDictionary:从字典映射到一个对象,这是KVC中的一个方法所提供的,这个方法就是 setValuesForKeysWithDictionary: ,非常好用,不需要你来一一的给对象赋值而直接从字典初始化即可,但用的不好会经常崩溃,本教程就来... 阅读全文
摘要:
/*** 大图功能*/- (IBAction)big {// 1.添加阴影 UIButton *cover = [[UIButton alloc]init]; cover.frame = self.view.bounds; [self.view addSubview:cover]; cov... 阅读全文
摘要:
// 清空上一次的按钮 for (UIButton *answerBtn in self.answerView.subviews) { [answerBtn removeFromSuperview]; }for (UIView *view in cell.contentView.sub... 阅读全文
摘要:
#import "TimeCollectionCell.h" #import typedef void (^ReturnBlock)(NSString *showText);@interface TimeCollectionCell : UICollectionViewCell@property ... 阅读全文
摘要:
//病例种类 button-(void)illcaseBtnClick{ if (isComboBoxHide==NO) { _comboBox.hidden = NO; isComboBoxHide=YES; } else{ _comboBox.hidden = YES; ... 阅读全文
摘要:
UIButton *btn=(UIButton *)[self.view viewWithTag:10]; 阅读全文
摘要:
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ //打印动画块的位置 NSLog(@"动画执行之前的位置:%@",NSStringFromCGPoint(self.customView.center)); ... 阅读全文