- 博客(10)
- 收藏
- 关注
原创 常用自定义的内容
//屏幕宽高#define Width [UIScreen mainScreen].bounds.size.width#define Height [UIScreen mainScreen].bounds.size.height//自定义颜色#define COLOR(R,G,B,A)[UIColor colorWithRed:R green:G blue:B alph
2017-08-29 17:34:24 260
转载 swift语言实现单例模式
Swift实现单例模式Swift语言两种的单例实现:版本一class SwiftSingleton{ class func shareInstance()->SwiftSingleton{ struct YRSingleton{ static var predicate:dispatch_once_t = 0 st
2017-08-04 16:52:38 318
原创 iOS下Hybird实现---OC与JS交互以及swift与JS交互
iOS中JS与原生交互有很多种,这里因为项目中集成了一些H5页面,所以就说一下使用UIWebView与WKWebView的代理方法,在JS 中做一次URL跳转,然后在OC和Swift中分别中拦截跳转。 OC实现JS交互 ----- UIWebView
2017-08-03 16:39:43 209
转载 SDwebImage使用原理
1.入口 setImageWithURL:placeholderImage:options: 会先把 placeholderImage 显示,然后 SDWebImageManager 根据 URL 开始处理图片。2.进入 SDWebImageManagerdownloadWithURL:delegate:options:userInfo:,交给 SDImageCache 从缓存查找图片是否已
2017-07-04 13:45:34 153
转载 UITableView优化
如果你想要如丝般顺滑的效果,那么:1、每次都看一下有没有能重用的 cell,而不是永远重新新建(这个是 UITableView 的常识)2、图片载入放到后台进程去进行,滚出可视范围的载入进程要 cancel 掉3、圆角、阴影之类的全部 bitmap 化,或者放到后台 draw 好了再拿来用4、Cell 里要用的数据提前缓存好,不要现用现去读文件5、数据量太大来不及一次读完的做一
2016-07-28 16:57:16 163
转载 TabkeViewCell滚动时候的动画
- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath{ CATransform3D transform =CATransform3DIdentity; tra
2016-07-26 10:34:31 222
原创 走在自我提升的道路上
技术网站:36氪next 、mindstore、demo8,简书,知乎一套面试题的标准回答:http://blog.csdn.net/hanangellove/article/details/45033453感动文章的地址:http://www.jianshu.com/p/c30baad06638自学的网站:http://www.jiansh
2016-07-26 10:06:39 309
原创 自动布局方法教程
SDAutoLayout地址:https://github.com/gsdios/SDAutoLayout * SDAutoLayout视频教程:http://www.letv.com/ptv/vplay/24038772.html * SDAutoLayout用法示例:https://github.com/gsdios/SDAutoLayout/blob/master/READM
2016-06-29 14:55:49 300
转载 CocoaChina上给出的好的开源项目
扫描wifi信息:http://code.google.com/p/uwecaugmentedrealityproject/http://code.google.com/p/iphone-wireless/条形码扫描:http://zbar.sourceforge.net/iphone/sdkdoc/install.htmltcp/ip的通讯协议:h
2016-06-29 10:51:53 197
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人