上一页 1 ··· 5 6 7 8 9 10 11 下一页
摘要: /一个section刷新 NSIndexSet *indexSet=[[NSIndexSet alloc]initWithIndex:2]; [tableview reloadSections:indexSet withRowAnimation:UITableViewRowAnimationAutomatic]; //一个cell刷新 NSIndexPath *i... 阅读全文
posted @ 2016-08-19 11:28 J-Vijay 阅读(7150) 评论(0) 推荐(2)
摘要: 一、底层实现 1、AFN的底层实现基于OC的NSURLConnection和NSURLSession 2、ASI的底层实现基于纯C语言的CFNetwork框架 3、因为NSURLConnection和NSURLSession是在CFNetwork之上的一层封装,因此ASI的运行性能高于AFN 二、对 阅读全文
posted @ 2016-08-19 11:24 J-Vijay 阅读(218) 评论(0) 推荐(0)
摘要: 移动应用在处理网络资源时,一般都会做离线缓存处理,其中以图片缓存最为典型,其中很流行的离线缓存框架为SDWebImage。但是,离线缓存会占用手机存储空间,所以缓存清理功能基本成为资讯、购物、阅读类app的标配功能。今天介绍的离线缓存功能的实现,主要分为缓存文件大小的获取、删除缓存文件的实现。 获取 阅读全文
posted @ 2016-08-19 11:21 J-Vijay 阅读(244) 评论(0) 推荐(0)
摘要: CAKeyframeAnimation* animation = [CAKeyframeAnimation animationWithKeyPath:@"transform"]; animation.duration = 1; NSMutableArray *values = [NSMutableArray array]; [values addObject:[NSValue valueWith... 阅读全文
posted @ 2016-08-19 10:37 J-Vijay 阅读(666) 评论(0) 推荐(0)
摘要: /** 替换关键字的属性名 */ + (NSDictionary *)mj_replacedKeyFromPropertyName{ return @{@"UUID":@"id"}; } +(NSDictionary *)mj_objectClassInArray{ return @{@"result":[PicDetailsItemsModel class]}; } 阅读全文
posted @ 2016-08-19 10:36 J-Vijay 阅读(634) 评论(0) 推荐(0)
摘要: 下面方法可以将文本复制到剪切板 UIPasteboard *pboard = [UIPasteboard generalPasteboard]; pboard.string = @"邀请码"; 阅读全文
posted @ 2016-08-19 10:35 J-Vijay 阅读(1710) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2016-08-19 10:34 J-Vijay 阅读(131) 评论(0) 推荐(0)
摘要: NSMutableAttributedString * attrString =[[NSMutableAttributedString alloc] initWithData:[resultModel.tips dataUsingEncoding:NSUnicodeStringEncoding]options:@{NSDocumentTypeDocumentAttribute: NSHTMLTe... 阅读全文
posted @ 2016-08-19 10:32 J-Vijay 阅读(2645) 评论(0) 推荐(0)
摘要: NSAttributedString *attrStr =[[NSAttributedString alloc]initWithString:[NSString stringWithFormat:@"¥%@", resultModel.originalprice]attributes:@{NSFontAttributeName:[UIFont systemFontOfSize:12],NSFor... 阅读全文
posted @ 2016-08-19 10:30 J-Vijay 阅读(260) 评论(0) 推荐(0)
摘要: - (void)webViewDidFinishLoad:(UIWebView *)wb{ //方法1 CGFloat documentWidth = [[wb stringByEvaluatingJavaScriptFromString:@"document.getElementById('content').offsetWidth"] floatValue]; CGFloat docume... 阅读全文
posted @ 2016-08-19 10:29 J-Vijay 阅读(1484) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 下一页