在SB中控件可以在SB中直接利用kvc 设置一些属性值,不如layerwidth等 但是不能更改和颜色有关的属性因为layerbordercolor是CGColor.通过为CALayer增加属性可以实现在SB中也能用KVC设置layerbordercolor;新建CALayer的分类(代码参考网上)...
分类:
其他 时间:
2016-01-21 23:50:16
收藏:
0 评论:
0 赞:
0 阅读:
245
线性代数之齐次坐标
分类:
其他 时间:
2016-01-21 23:49:32
收藏:
0 评论:
0 赞:
0 阅读:
350
前段时间为了配置iterm的字体颜色用brew安装coreutils来着结果在temp目录下出现了一个confdir-14B---的目录,超级深,一共337个confdir-14B---,用rm更本无法删掉……于是上谷歌搜到这个while [ true ]; do mv confdir-14B---...
分类:
其他 时间:
2016-01-21 23:49:21
收藏:
0 评论:
0 赞:
0 阅读:
283
public class ConvertHelper where T : new() { /// /// 利用反射和泛型 /// /// /// public static L...
分类:
其他 时间:
2016-01-21 23:49:10
收藏:
0 评论:
0 赞:
0 阅读:
205
DescriptionRailway tickets were difficult to buy around the Lunar New Year in China, so we must get up early and join a long queue…The Lunar New Year ...
分类:
其他 时间:
2016-01-21 23:48:48
收藏:
0 评论:
0 赞:
0 阅读:
244
DescriptionJSOI交给队员ZYX一个任务,编制一个称之为“文本生成器”的电脑软件:该软件的使用者是一些低幼人群,他们现在使用的是GW文本生成器v6版。该软件可以随机生成一些文章―――总是生成一篇长度固定且完全随机的文章—— 也就是说,生成的文章中每个字节都是完全随机的。如果一篇文章中至少...
分类:
其他 时间:
2016-01-21 23:48:26
收藏:
0 评论:
0 赞:
0 阅读:
248
题目链接:http://www.lydsy.com/JudgeOnline/problem.php?id=2733Description永无乡包含 n 座岛,编号从 1 到 n,每座岛都有自己的独一无二的重要度,按照重要度可 以将这 n 座岛排名,名次用 1 到 n 来表示。某些岛之间由巨大的桥连接...
分类:
其他 时间:
2016-01-21 23:48:15
收藏:
0 评论:
0 赞:
0 阅读:
280
浏览器: “JS解析器” 1)“找一些东西” :var function 参数 a = ... 所有的变量,在正式运行代码之前,都提前赋了一个值:未定义 fn1 = function fn1(){ alert(2); } ...
分类:
其他 时间:
2016-01-21 23:47:53
收藏:
0 评论:
0 赞:
0 阅读:
226
---恢复内容开始---理清思路1、在第三方注册成为开发者,拿到第三方给的client_id(app_id---就像你的身份证、QQ号)和client_secret(就像你的QQ密码);2、填写好redirect_url(回调地址----用于用户登录成功后回到的页面地址);3、写代码当用户点击了第三...
分类:
其他 时间:
2016-01-21 23:47:09
收藏:
0 评论:
0 赞:
0 阅读:
297
/* hdu4842(NOIP2005过河)之动态规划(距离压缩) dp[i]:=到桥上的i位置,最少需要踩到的石子数。 dp[i]=min(dp[i],dp[i-j]+isStone[i]) 条件: (1)S=(T-1)*T时 (这个具体数值不精确,但是满足想达到的效果,下面有简单的证明),青蛙....
分类:
其他 时间:
2016-01-21 23:46:58
收藏:
0 评论:
0 赞:
0 阅读:
354
#ifndef List_h__#define List_h__#include struct ListNode{ int value; ListNode* pNext; ListNode(int n) :value(n), pNext(nullptr){}};class List...
分类:
其他 时间:
2016-01-21 23:46:26
收藏:
0 评论:
0 赞:
0 阅读:
232
基于Nancy.Hosting.Self的Nancy小Demo
分类:
其他 时间:
2016-01-21 23:45:53
收藏:
0 评论:
0 赞:
0 阅读:
539
Parallax Slider Loading images... ...
分类:
其他 时间:
2016-01-21 23:44:13
收藏:
0 评论:
0 赞:
0 阅读:
317
一、random模块:随机数import randomprint random.random()print random.randint(1,2)print random.randrange(1,10)print chr(65) #实现字母和数字的相互转换print ord("y")num =...
分类:
其他 时间:
2016-01-21 23:43:51
收藏:
0 评论:
0 赞:
0 阅读:
393
//该Activity的最外层LayoutfinalView activityRootView = findViewById(R.id.activityRoot); //给该layout设置监听,监听其布局发生变化事件activityRootView.getViewTreeObserver().ad...
分类:
其他 时间:
2016-01-21 23:43:29
收藏:
0 评论:
0 赞:
0 阅读:
343
版权声明:转载时请以超链接形式标明文章原始出处和作者信息及本声明http://www.blogbus.com/dreamhead-logs/235916459.html只要稍微了解过一些Scala,这门JVM上广受关注的程序设计语言,你一定会对其中的一个Actor特性印象深刻。Actor是另一种进行...
分类:
其他 时间:
2016-01-21 23:43:08
收藏:
0 评论:
0 赞:
0 阅读:
329
git git clone https://github.com/sunyongjie1984/sll git clone https://sunyongjie1984:Git541981101211@github.com/sunyongjie1984/sll vi islln.h // modif...
分类:
其他 时间:
2016-01-21 23:42:36
收藏:
0 评论:
0 赞:
0 阅读:
291
对象和类一 对象和类类是模子,确定对象将会拥有的特征(属性)和行为(方法);类是相同属性和方法的一组对象的集合;类是对象的类型;1. 属性特定的值或特征。2. 方法对象执行的操作,就是能做什么。3. 定义类JAVA程序都以类class为组织单元;组成:属性和方法;4. 成员变量与局部变量的区别作用域...
分类:
其他 时间:
2016-01-21 23:42:01
收藏:
0 评论:
0 赞:
0 阅读:
252
假设单链表数据结构定义如下: struct ListNode { int val; ListNode *next; ListNode(int x) : val(x), next(NULL) {} };单链表有一个头指针指向第一个结点,最后一个结点指向NULL一、最容...
分类:
其他 时间:
2016-01-21 23:41:50
收藏:
0 评论:
0 赞:
0 阅读:
226
ListenableFutureExplained并发是一个困难的问题,但是使用强大而简单的抽象可以极大地简化并发问题。为了简化事情,Guava使用ListenableFuture继承了JDK的Future接口.我们强烈建议你在所在代码里总是使用ListenableFuture,而不是Future,...
分类:
其他 时间:
2016-01-21 23:41:28
收藏:
0 评论:
0 赞:
0 阅读:
323