API接口文档。 https://developer.apple.com/library/mac/#documentation/Carbon/Reference/CoreText_Framework_Ref/_index.html CoreText 框架中最常用的几个类: CTFont CTFontCollection CTFontDescriptor CTF...
分类:
移动开发 时间:
2015-06-10 17:31:56
阅读次数:
227
原文:.Net 转战 Android 4.4 日常笔记(10)--PullToRefresh下拉刷新使用下拉刷新很多地方都用到了,新浪微博,微信,百度新闻 这里我们使用一个开源的库叫:PullToRefresh 开源地址:https://github.com/chenyoca/pull-to-ref...
分类:
移动开发 时间:
2015-06-10 10:09:20
阅读次数:
193
Given an array where elements are sorted in ascending order, convert it to a height balanced BST.题解完全抄自ref的说明,感谢!“题解:先复习下什么是二叉搜索树(引自Wikipedia):二叉查找树(B...
分类:
其他好文 时间:
2015-06-10 06:33:38
阅读次数:
112
简单题ref“使用的是先序遍历,算法的复杂度跟遍历是一致的,如果使用递归,时间复杂度是O(n),空间复杂度是O(logn)。” by codegankerhttp://blog.csdn.net/linhuanmars/article/details/22839819?Time to search ...
分类:
其他好文 时间:
2015-06-10 06:32:13
阅读次数:
104
out和ref的用法和区别函数参数默认是值传递,也就是“复制一份”看个栗子:static void Main(string[] args) { int age = 10; IncAge(age); Console.Wri...
分类:
其他好文 时间:
2015-06-09 21:29:09
阅读次数:
122
转自:http://www.w3school.com.cn/tags/html_ref_urlencode.htmlURL 编码 - 从 %00 到 %8fASCII ValueURL-encodeASCII ValueURL-encodeASCII ValueURL-encodeæ%000%30`...
分类:
Web程序 时间:
2015-06-09 19:23:05
阅读次数:
158
来说说看问题急躁,一开始就理所当然的想问的是overlapped area,实际上是total。脑子里一堆边界条件,看了ref觉得很简洁http://blog.csdn.net/foreverling/article/details/46411069public class Solution { ....
分类:
其他好文 时间:
2015-06-09 06:07:30
阅读次数:
99
lambda 表达式1. lambda 表达式基础"Python支持一种有趣的语法,它允许你快速定义单行的最小函数。这些叫做lambda的函数,是从Lisp借用来的,可以用在任何需要函数的地方。" Ref[1] 1 >>> def f(x): 2 ... return x*2 3 ... ...
分类:
编程语言 时间:
2015-06-08 23:02:55
阅读次数:
210
NSObject和反射2。 commend +R run id stu=[Student student]; // –> Student *stu=[Student student]; :也是方法名的一部分 主要是反射:reflect 根据字符串来实例化一个对象 //#pragma mark ref...
分类:
其他好文 时间:
2015-06-08 16:48:52
阅读次数:
106
#include
Ref is used for reference count manangement. If a classinherits from Ref.
Class Ref 为引用计数类,用来管理对象的引用计数。这样就不会出现还有指针保持指向该对象,当使用该指针操作时,如果指向的对象被销毁就会出现程序异常。
class
CC_DLL Ref
{
public:
...
分类:
其他好文 时间:
2015-06-06 18:16:18
阅读次数:
181