- 博客(12)
- 收藏
- 关注
原创 C语言基础系列--运算符
优先级运算符名称或含义使用形式结合方向说明1[]数组下标数组名[常量表达式]左到右()圆括号(表达式)/函数名(形参表).
2014-03-29 22:08:22
388
原创 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
643
翻译 ios学习临时笔记-UITableView学习
一.常见属性//设置表视图分割线风格@property(nonatomic) UITableViewCellSeparatorStyle separatorStyle;//设置表视图分割线颜色,默认灰色@property(nonatomic,retain) UIColor *separatorColor;//设置表视图的头部视图@property(nonatomic,r
2014-03-20 14:55:50
429
翻译 ios学习临时笔记-CGContext学习
CGContextSaveGState(CGContextRef c) 按目前的图形状态的副本到图形状态栈。(路径不保存)CGContextRestoreGState(CGContextRef c)还原最近一次保存的图形状态CGContextScaleCTM(CGContextRef c, CGFloat sx, CGFloat sy)缩放当前图形状态的矩阵CG
2014-03-19 20:53:15
1563
转载 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
714
翻译 ios学习临时笔记-UIImage拉伸
一.图片拉伸- (UIImage *)resizableImageWithCapInsets:(UIEdgeInsets)capInsets- (UIImage *)resizableImageWithCapInsets:(UIEdgeInsets)capInsets resizingMode:(UIImageResizingMode)resizingMode以上两个函数都用于图片的拉
2014-03-19 17:28:24
473
翻译 ios学习临时笔记-UIViewAutoresizing
一.说明先看UIView中的UIViewAutoresizing的枚举说明:typedef NS_OPTIONS(NSUInteger, UIViewAutoresizing) { UIViewAutoresizingNone = 0, UIViewAutoresizingFlexibleLeftMargin = 1 << 0,
2014-03-19 16:13:59
443
翻译 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
501
原创 ios学习临时笔记-NSLocalizedString使用
一、NSLocalizedString的官方define#define NSLocalizedString(key, comment) \ [[NSBundle mainBundle] localizedStringForKey:(key) value:@"" table:nil]第一个参数是key值,第二个comment参数可以为@"",nil或注解二、详细使用步骤
2014-03-18 18:19:37
546
原创 ios学习之(x)--ASIHTTPRequest
一. ASIHTTPRequest类库如图:二. 对应类的功能1、ASIHTTPRequest处理与服务器进行交互,包括上传,下载,认证和cooies等。2、ASIFormDataRequestASIHttpRequest的子类,主要负责处理post事件。3、ASINetworkQueueNSOperationQueue的子类,可以处理多个请求。
2014-03-13 20:58:52
350
原创 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
699
原创 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
370
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅