- 博客(10)
- 收藏
- 关注
原创 React为什么要用 bind才不丢失this
https://reactjs.org/docs/handling-events.htmlclass Toggle extends React.Component { constructor(props) { super(props); this.state = {isToggleOn: true}; // This binding is necessary t...
2018-03-04 15:45:26
1199
原创 merge and rebase
The difference of merge and rebaserebase rebase process <!-- state --> feature S01 and S02 created in node A(dev) SO1 commit once and in node B S02 commit once and in node C <!-- opeartion --
2017-11-08 13:57:47
276
原创 装饰模式与代理模式的区别
装饰模式:将对象进行装饰后继续使用该对象 代理模式:讲对象方法交给代理后,使用代理参考网址: http://www.cnblogs.com/jaredlam/archive/2011/11/08/2241089.html
2016-10-31 23:13:53
276
转载 Sublime Text 2 不支持GB2312和GBK编码/中文乱码
Sublime Text 2是一个非常不错的源代码及文本编辑器,但是不支持GB2312和GBK编码在很多情况下会非常麻烦。不过Sublime Package Control所以供的插件可以让Sublime Text 2几乎完美地支持CJK编码的文本。安装Sublime Package Control第一步:1、在Sublime Text2上用Ctrl+~打开控制台并在里面输入以下代码,或者是官方提供
2016-02-03 16:37:08
1485
原创 UIActionSheet :libc++abi.dylib: terminate_handler unexpectedly threw an exception
libc++abi.dylib: terminate_handler unexpectedly threw an exception 出现在UIActionSheet 弹出的时候报错。原因:UIActionSheet在8.3之后过时,要使用 UIAlertController with a preferredStyle of UIAlertControllerStyleActionSheet
2016-02-03 16:20:28
549
原创 Block
Block的使用objective-c中可以用block代替delegate使用,更简洁灵活, 一、相关概念声明:对编译器说:这里我有一个函数叫function() 让编译器知道这个函数的存在。定义:具体就是函数的实现过程 写明函数体。调用:调用一个函数 -_-|||二、 形式一、带参数无返回值 //=左边:声明 =右边:定义 void(^blockFunc)(int)=^(
2016-02-02 18:40:53
273
原创 常用的Xcode快捷键
以下是我自己常用的,不是完整的哦(*^__^*) ……Search: option+command+ j filename ( 需要先 command+1) command + f this file shift+command+ f all text contain command + L
2016-01-11 17:12:21
381
原创 struct 结构体笔记
1) struct tag { member-list } variable-list ; tag:结构体标签 variable:结构体变量 member-list:结构体成员 2) struct { int a; char b; double c; } s1;s1.a=123;
2016-01-09 21:03:32
429
原创 cocoapods 安装
CocoaPods 安装我自己在网上查阅有的不能一步到位有的卡在那里。这次又成功安装了2次。所以分享出来还有以后自己查阅。详细步骤一、配置ruby1.安装 RVM $ curl -L https://get.rvm.io | bash -s stable2.载入RVM环境并检查是否正确 $ source ~/.rvm/scripts/rvm $ rvm -v 3.用 RVM 安装
2015-12-20 10:35:32
334
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人