- 博客(12)
- 收藏
- 关注
原创 C语言基础系列--运算符
优先级 运算符 名称或含义 使用形式 结合方向 说明 1 [] 数组下标 数组名[常量表达式] 左到右 () 圆括号 (表达式)/函数名(形参表) .
2014-03-29 22:08:22 338
原创 C语言基础系列--数据进制转换
一、数据的进制转换 1、十进制和二进制转换: 例子如下: 45 转换为二进制是多少? 2|45 ! 2|22 余 1 | 2|11 余 0 | 2|5 余 1 | 2|2 余 1 | 2|1 余 0 | 2|0 余 1 | 倒着往上写,结果:45--->101101
2014-03-29 21:42:01 549
翻译 ios学习临时笔记-UITableView学习
一.常见属性 //设置表视图分割线风格 @property(nonatomic) UITableViewCellSeparatorStyle separatorStyle; //设置表视图分割线颜色,默认灰色 @property(nonatomic,retain) UIColor *separatorColor; //设置表视图的头部视图 @property(nonatomic,r
2014-03-20 14:55:50 372
翻译 ios学习临时笔记-CGContext学习
CGContextSaveGState(CGContextRef c) 按目前的图形状态的副本到图形状态栈。(路径不保存) CGContextRestoreGState(CGContextRef c) 还原最近一次保存的图形状态 CGContextScaleCTM(CGContextRef c, CGFloat sx, CGFloat sy) 缩放当前图形状态的矩阵 CG
2014-03-19 20:53:15 1421
转载 ios学习临时笔记-UIBezierPath学习
一.方法介绍 + (UIBezierPath *)bezierPath创建一个UIBezierPath对象 + (UIBezierPath *)bezierPathWithArcCenter:(CGPoint)center radius:(CGFloat)radius startAngle:(CGFloat)startAngle endAngle:(CGFloat)endAngle clo
2014-03-19 18:34:56 649
翻译 ios学习临时笔记-UIImage拉伸
一.图片拉伸 - (UIImage *)resizableImageWithCapInsets:(UIEdgeInsets)capInsets - (UIImage *)resizableImageWithCapInsets:(UIEdgeInsets)capInsets resizingMode:(UIImageResizingMode)resizingMode 以上两个函数都用于图片的拉
2014-03-19 17:28:24 401
翻译 ios学习临时笔记-UIViewAutoresizing
一.说明 先看UIView中的UIViewAutoresizing的枚举说明: typedef NS_OPTIONS(NSUInteger, UIViewAutoresizing) { UIViewAutoresizingNone = 0, UIViewAutoresizingFlexibleLeftMargin = 1 << 0,
2014-03-19 16:13:59 378
翻译 ios学习临时笔记-CGAffineTransform
一.说明 先来看CGAffineTransform类的定义 struct CGAffineTransform { CGFloat a, b, c, d; CGFloat tx, ty; }; 其实它是一个3X3的矩阵,表明a={1,1},b={1,2},c={2,1},d={2,2},tx={3,1},ty={3,2} 仿射变换公式:,结果: 表明变换后的点向量(x’,y’)是由
2014-03-19 15:28:18 443
原创 ios学习临时笔记-NSLocalizedString使用
一、NSLocalizedString的官方define #define NSLocalizedString(key, comment) \ [[NSBundle mainBundle] localizedStringForKey:(key) value:@"" table:nil] 第一个参数是key值,第二个comment参数可以为@"",nil或注解 二、详细使用步骤
2014-03-18 18:19:37 458
原创 ios学习之(x)--ASIHTTPRequest
一. ASIHTTPRequest类库如图: 二. 对应类的功能 1、ASIHTTPRequest 处理与服务器进行交互,包括上传,下载,认证和cooies等。 2、ASIFormDataRequest ASIHttpRequest的子类,主要负责处理post事件。 3、ASINetworkQueue NSOperationQueue的子类,可以处理多个请求。
2014-03-13 20:58:52 297
原创 Objective-C GCD使用
1、给GCD分派任务 c函数代替block,库定义: typedef void (*dispatch_function_t)(void *); 案例: void firstIteration(void *paramContext); void secondIteration(void *paramContext); void thirdIteration(void *paramContex
2013-06-13 16:07:44 611
原创 Objective-C block使用
block object语法: NSInteger (^subtract)(NSInteger, NSInteger)= ^(NSInteger paramValue, NSInteger paramFrom){ return paramFrom - paramValue; } 第一个NSInteger:返回类型。 ^ :将subtract声明为一个块对象。 (NSInteger
2013-06-13 11:11:53 319
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人