第六章: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
WINDOWS环境下的解决方法: 1: 下载sqlite3数据库工具,放置于SVN的同级目录 2: CMD路径转移到Sqlite3目录 3: 残留操作选择:sqlite3 .svn/wc.db "select * from work_queue" 4: 残留操作删除:sqlite3 .svn...
分类:
数据库 时间:
2014-08-22 23:50:49
阅读次数:
461
System V Message queue 是一种进程通信(IPC)的方式,方便实现生产者-消费者模型,单个或多个生产者向队列中写入消息,多个生产者再从队列中获取消息进行处理。
项目地址:https://github.com/huyanping/Zebra-PHP-Framework
该Wrapper支持:
进程通信
设置最大队列容量(字节单位)
获取当前队列数量
修改队列部分属性...
分类:
Web程序 时间:
2014-08-22 17:56:59
阅读次数:
180
java集合大致上可分为:set,list,map三种体系,其中set代表无序不可重复的集合,list代表有序可重复的集合,map代表具有映射关系的集合。后来又增加一种Queue体系集合,代表一种队列的集合实现。set和list接口都实现了collection接口使用Iterator接口遍历集合元素...
分类:
编程语言 时间:
2014-08-22 16:10:19
阅读次数:
257
解题报告
题目传送门
题意:
先输入n,m
接下来m行,每行输入A,B,C
输入A B C,表示孩子B最多比孩子A多C块蛋糕,问孩子1与孩子N最多相差多少块蛋糕!
思路:
求解b-a
源点为1
spfa+queue超时,spfa+queue+slf还超时,用stack却过了。
#include
#include
#include
#include
#in...
分类:
其他好文 时间:
2014-08-22 14:29:48
阅读次数:
178
水题。
#include
#include
#include
#include
using namespace std;
typedef long long ll;
priority_queue q;
int main() {
int T, cas = 0;
scanf("%d", &T);
while(T-- > 0) {
int n;
...
分类:
其他好文 时间:
2014-08-21 19:27:14
阅读次数:
196