把时间当作朋友:运用心智获得解放 (李笑来) 125
越是勤奋的人越输不起,越是输不起的人越勤奋
我自己也是在写作的过程中才清楚地意识到“管理时间”的说法有多么荒谬。人是没办法管理时间的,时间也不听从任何人的管理,它只会自顾自一如既往地流逝。“
JavaScriptCore使用
1 |
|
iOS中bundle的使用
将图片文件夹的后缀改名为:xxx.bundle
VC获得bundle中的资源
1 | NSString * bundlePath = [[ NSBundle mainBundle] pathForResource: @ "MyBundle" ofType :@ "bundle"]; |
UIImageView获得bundle中的资源
1 | UIImageView *imgView=[[UIImageView alloc] initWithFrame:CGRectMake(50, 50, 50, 50)]; |
iOS开发的系统兼容性问题解决
1:系统方法过时的注解
1 | - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)image editingInfo:(NSDictionary *)editingInfo NS_DEPRECATED_IOS(2_0, 3_0); |
iOS绘图
Path:路径
1 | //指定当前点为 current point,Quartz会跟踪current point一般执行完一个相关函数后,current point都会相应的改变。 |
Arcs:弧线
1 | void CGContextAddArc ( |
画椭圆,矩形
1 | void CGContextAddEllipseInRect ( |
Path:路径
1 | CGContextMoveToPoint设置起点 |
参考
ios绘图基础
http://liuyanwei.jumppo.com/2015/07/25/ios-draw-base.html
ios绘图demo,做一个涂鸦板(上)
http://liuyanwei.jumppo.com/2015/07/26/ios-draw-Graffiti.html
ios绘图demo,做一个涂鸦板(下)
http://liuyanwei.jumppo.com/2015/09/02/ios-draw-Graffiti-2.html
IOS绘制圆,直线,弧线,矩形,扇形,三角形,贝塞尔等图形:
http://blog.csdn.net/chocolateloveme/article/details/17246887
IOS开发UI篇—Quartz2D使用(绘图路径)
http://www.cnblogs.com/wendingding/p/3782679.html
Paths
http://donbe.blog.163.com/blog/static/138048021201052093633776/
IOS 使用Quartz 2D画虚线
http://blog.csdn.net/zhangao0086/article/details/7234859
iOS多线程技术
1:performSelector 多线程
1 | /* |
iOS9支持http请求
##ios9 回退不安全网络模式(支持http协议)
在项目中找到info.plist 源文件形式打开(右击info.plist文件-open as-source code),添加下面内容
1 | <key>NSAppTransportSecurity</key> |
linkingge 注:arbitrary 意思是任意的,AllowsArbitraryLoads 意思是允许所有的下载模式;在自己的项目中找到了此项,项目用到的测试API必须支持http协议。
https请求处理方式1:信任一切证书
处理方法
1:使用异步请求方式
2:证书信任的委托这样处理
1 | -(BOOL)connectionShouldUseCredentialStorage:(NSURLConnection *)connection{ |
cookie操作
获取服务端cookie
1 | //获取cookie |