第六章:Specialized Layers类别用途CAEmitterLayer用于实现基于Core Animation粒子发射系统。发射器层对象控制粒子的生成和起源CAGradientLayer用于绘制一个颜色渐变填充图层的形状(所有圆角矩形边界内的部分)CAEAGLLayer/CAOpenGLL...
分类:
移动开发 时间:
2014-08-23 15:21:31
阅读次数:
211
Book DescriptionPublication Date:August 12, 2013Core Animation is the technology underlying Apple’s iOS user interface. By unleashing the full power o...
分类:
移动开发 时间:
2014-08-23 15:18:41
阅读次数:
232
[objc]view plaincopyprint?-(void)drawLayer:(CALayer*)layerinContext:(CGContextRef)ctx{CGFloatwidth=10.0f;//drawathickredcircleCGContextSetLineWidth(ct...
分类:
移动开发 时间:
2014-08-23 15:18:31
阅读次数:
238
第五章:TransformsAffine TransformsCGAffineTransform是二维的Creating a CGAffineTransform主要有三种变化方法旋转:CGAffineTransformMakeRotation(CGFloat angle)缩放:CGAffineTra...
分类:
移动开发 时间:
2014-08-23 15:14:11
阅读次数:
457
第四章:Visual EffectsRounded Corners例子4.1cornerRadius源码在这里下载:http://www.informit.com/title/9780133440751[objc]view plaincopyprint?#import"ViewController....
分类:
移动开发 时间:
2014-08-23 15:13:21
阅读次数:
340
将源区间按照x坐标大小排序,然后进行合并,使用二分查找目标区间x,y坐标在源区间中的分布,若两者分布于同一连续区间,则区间重合代码: 1 #include 2 #include 3 using namespace std; 4 5 struct section 6 { 7 int low;...
分类:
其他好文 时间:
2014-08-23 13:54:30
阅读次数:
252
虚函数和模板是C++里面很棒的特征,他们都提供了一种方法,让程序在编译中完成一些计算,去掉的这些计算在比较low的编程方式中,是需要在程序运行中执行的。在这里,我要强调的是:“在编译过程中完成一些计算”。
我会举两个例子,一个是虚函数的,比较简单,另一个例子是关于特征模板的,在例子中,根据模板参数的类型自动选择模板的底层数据结构。...
分类:
其他好文 时间:
2014-08-23 11:25:10
阅读次数:
161
```python def is_pamax(name): low = 0 up = len(name)-1 while low < up: if name[low] != name[up]: return False low += 1 up -= 1 return True f = open("D:/names.txt") max_length = 0 for line in f: nam...
分类:
其他好文 时间:
2014-08-23 01:12:09
阅读次数:
383
这2天 每天学个新的算法吧...可以的话....tarjan的代码 还是很容易写的 也很容易构图 但总觉得有些细节不那么好理解传送1 传送2怎么说呢 总觉得他定义的 low数组含义是有问题的这是 原作者下的定义定义DFN(u)为节点u搜索的次序编号(时间戳),Low(u)为u或u的子树能够追溯到的最...
分类:
其他好文 时间:
2014-08-23 00:57:19
阅读次数:
249
1.禁止单个IP 2.禁止IP段$ban_range_low && $ip 另外请注意,PHP的ip2long有bug,请慎用"; //输出是 979569409 echo ip2long('58.99.011.1'),""; //输出是 979568897 echo ip2long('058...
分类:
Web程序 时间:
2014-08-22 10:43:26
阅读次数:
205