conanwin

导航

2015年10月14日 #

CocoaPods安装和使用教程

摘要: 安装过程:xcode -> homebrew -> RVM -> Ruby -> CocoaPats1 安装xcode2 homebrew 官方网站:http://brew.sh/index_zh-cn.html3 Ruby$ gem sources --add https://ruby.taoba... 阅读全文

posted @ 2015-10-14 14:42 conanwin 阅读(395) 评论(0) 推荐(0) 编辑

2015年10月12日 #

NSTimeInterval

摘要: 1 ios 获取时间间隔 想在程序开始或者进入某个界面 ,到结束程序或退出某个界面,获取到这个持续时间. 获取到这个时间还需要转化一个取得时分秒. -(NSString *)getCurrentTime { NSDateFormatter *formatter = [[NSDateFormatter 阅读全文

posted @ 2015-10-12 15:40 conanwin 阅读(918) 评论(0) 推荐(0) 编辑

2015年10月10日 #

OC-NSString从文件中读取字符串

摘要: void test2(){ NSString *path = @"/Users/gx/Desktop/test_utf8.txt"; //NSString *str = [NSString stringWithContentsOfFile:path]; //UTF-8编码 NSString *str 阅读全文

posted @ 2015-10-10 10:39 conanwin 阅读(402) 评论(0) 推荐(0) 编辑

2015年10月9日 #

XMPP(mac)方案二 ejabberd 服务器搭建 (转载)

摘要: 服务器搭建http://blog.sina.com.cn/s/blog_51a995b70101tllf.html 阅读全文

posted @ 2015-10-09 14:26 conanwin 阅读(147) 评论(0) 推荐(0) 编辑

2015年10月8日 #

监听 IOS响应式编程框架ReactiveCocoa(RAC)使用示例(转载)

摘要: ReactiveCocoa是响应式编程(FRP)在IOS中的一个实现框架,它的开源地址为:https://github.com/ReactiveCocoa/ReactiveCocoa# ;在网上看了几篇文章,感觉理论讲了很多,但是代码还是看不太懂,于是自己把它github文档上的一些使用的经典示例实 阅读全文

posted @ 2015-10-08 13:40 conanwin 阅读(1033) 评论(0) 推荐(0) 编辑

2015年9月18日 #

iOS开发-文件管理

摘要: 一、iOS中的沙盒机制iOS应用程序只能对自己创建的文件系统读取文件,这个独立、封闭、安全的空间,叫做沙盒。它一般存放着程序包文件(可执行文件)、图片、音频、视频、plist文件、sqlite数据库以及其他文件。每个应用程序都有自己的独立的存储空间(沙盒)一般来说应用程序之间是不可以互相访问模拟器沙... 阅读全文

posted @ 2015-09-18 17:21 conanwin 阅读(184) 评论(0) 推荐(0) 编辑

OC中NSString 的常用方法 (转载)

摘要: NSString *str1 = @"BeiJing"; NSString *str2 = @"beijing"; //全部转为大写 NSLog(@"%@",[str1 uppercaseString]); //全部转为小写 NSLog(@"%@",[... 阅读全文

posted @ 2015-09-18 16:38 conanwin 阅读(289) 评论(0) 推荐(0) 编辑

2015年9月2日 #

NSAttributedString

摘要: 字符属性字符属性可以应用于 attributed string 的文本中。NSString *const NSFontAttributeName;(字体)NSString *const NSParagraphStyleAttributeName;(段落)NSString *const NSForeg... 阅读全文

posted @ 2015-09-02 18:16 conanwin 阅读(234) 评论(0) 推荐(0) 编辑

2015年8月16日 #

[转载] iPhone/iOS Core Animation开发总结(CALayer)

摘要: 目录[-]一重要参数二几何变形Transforming a Layers Geometry三Layer数层结构Layer-Tree Hierarchy四提供Layer内容Providing Layer Content五动画六CALayer的子类们一.重要参数bounds,frame,position... 阅读全文

posted @ 2015-08-16 14:20 conanwin 阅读(205) 评论(0) 推荐(0) 编辑

2015年8月6日 #

安装本地服务器

摘要: http://www.linuxidc.com/Linux/2015-02/113577.htm 阅读全文

posted @ 2015-08-06 09:51 conanwin 阅读(180) 评论(0) 推荐(0) 编辑

2015年8月3日 #

homebrew包管理工具

摘要: http://brew.sh/index_zh-cn.html 阅读全文

posted @ 2015-08-03 11:40 conanwin 阅读(123) 评论(0) 推荐(0) 编辑

GAJavaScriptTracker javaScript 的足迹分析

摘要: https://github.com/doo/GAJavaScriptTracker 阅读全文

posted @ 2015-08-03 11:12 conanwin 阅读(116) 评论(0) 推荐(0) 编辑

2015年7月28日 #

Mac KVO

摘要: Key-Value Observing机制知识点介绍Key-Value Observing (简写为KVO):当指定的对象的属性被修改了,允许对象接受到通知的机制。每次指定的被观察对象的属性被修改的时候,KVO都会自动的去通知相应的观察者。KVO的优点:当 有属性改变,KVO会提供自动的消息通知。这... 阅读全文

posted @ 2015-07-28 10:55 conanwin 阅读(269) 评论(0) 推荐(0) 编辑

2015年7月23日 #

gitLab

摘要: https://code.videolan.org/explore 阅读全文

posted @ 2015-07-23 16:16 conanwin 阅读(145) 评论(0) 推荐(0) 编辑

添加移除开机启动项

摘要: 一写plist到~/Library/LaunchAgents/目录下[plain]view plaincopy//配置开机默认启动-(void)installDaemon{NSString*launchFolder=[NSStringstringWithFormat:@"%@/Library/Lau... 阅读全文

posted @ 2015-07-23 16:00 conanwin 阅读(692) 评论(0) 推荐(0) 编辑