04 2015 档案
摘要:void test2(){ //绘制矩形 CGContextRef context = UIGraphicsGetCurrentContext(); //获得上下文 CGContextAddRect(context, CGRectMake(50, 100, 100,...
阅读全文
摘要:#import // 定义一个叫做MyBlock的类型// 利用MyBlock类型可以定义block变量// 利用MyBlock类型定义出来的变量, 存储的代码必须返回int, 必须接受2个int类型的参数typedef int (^myBlock)(int ,int);void test(){ ...
阅读全文