摘要: Runloop 是事件接收和分发机制的一个实现。是线程相关的基础框架的一部分。一个Runloop就是一个事件处理的循环,用来不停的调度工作及处理输入事件。使用runloop的目的就是让你的线程 的主要目的: 保证程序执行的线程不会被系统终止,如果没有RunLoop,UIApplicationMain 阅读全文
posted @ 2019-01-16 14:10 Rui.peng 阅读(3464) 评论(0) 推荐(0) 编辑
摘要: 认识 KVC (Key Value Coding), 它是一种用间接方式访问类的属性的机制。在 中为一个类实现 的话,需要让它继承自 : 这样,我们就可以使用 的方式访问 类的属性了: KVC 有什么用? 可以不用过多的依赖编译时的限制,为我们提供了更多的运行时的能力,免去我们调用 和`setter 阅读全文
posted @ 2019-01-16 14:05 Rui.peng 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 在 package.json 中添加依赖,如下: "node-sass": "^3.4.2", "sass-loader": "^3.2.0", "style-loader": "^0.12.3" "node-sass": "^3.4.2", "sass-loader": "^3.2.0", "st 阅读全文
posted @ 2017-03-06 14:21 Rui.peng 阅读(358) 评论(0) 推荐(0) 编辑
摘要: JS引擎 Weex使用V8, React native使用JSCore JS开发框架 ( Js Framework ) Weex基于vue.js(2W+ star)。小巧轻量的前端开发框架,组件化,数据绑定,2.0引入virtual dom。 ReactNative使用React(4W+ star) 阅读全文
posted @ 2017-03-06 10:07 Rui.peng 阅读(2660) 评论(1) 推荐(0) 编辑
摘要: remove pods.framework 阅读全文
posted @ 2016-09-07 16:14 Rui.peng 阅读(362) 评论(0) 推荐(0) 编辑
摘要: 使用一个元组来返回多个值。 func getGasPrices() -> (Double, Double, Double) { return (3.59, 3.69, 3.79) 3. } getGasP rices () 使用一个元组来返回多个值。 func getGasPrices() -> ( 阅读全文
posted @ 2016-03-10 14:43 Rui.peng 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 项目的 push权限未打开 Open your project > Settings and go to "Protected branches", select: "Developers can push" and try again. 阅读全文
posted @ 2016-03-10 13:44 Rui.peng 阅读(1478) 评论(0) 推荐(0) 编辑
摘要: 1 进入到当前的代码目录 2 git add 文件夹(需要上传的文件) 3 git commit -m "你的注释" 4 git push ok ! 参考 : http://www.open-open.com/lib/view/open1335879873983.html 阅读全文
posted @ 2016-03-10 13:39 Rui.peng 阅读(814) 评论(0) 推荐(0) 编辑
摘要: 1 presentViewController let personalViewController = GET_SB("Personal").instantiateViewControllerWithIdentifier("PersonalNavigationController") self.p 阅读全文
posted @ 2016-02-17 09:22 Rui.peng 阅读(495) 评论(0) 推荐(0) 编辑
摘要: 1 终端 svn update svn checkout svn://localhost/mycode --username=name --password=mima /Users/apple/Documents/code 2 终端 cocoapod update pod update --verb 阅读全文
posted @ 2016-02-16 22:36 Rui.peng 阅读(266) 评论(0) 推荐(0) 编辑