ios学习临时笔记
文章平均质量分 51
JerryNil
这个作者很懒,什么都没留下…
展开
-
ios学习临时笔记-UIImage拉伸
一.图片拉伸- (UIImage *)resizableImageWithCapInsets:(UIEdgeInsets)capInsets- (UIImage *)resizableImageWithCapInsets:(UIEdgeInsets)capInsets resizingMode:(UIImageResizingMode)resizingMode以上两个函数都用于图片的拉翻译 2014-03-19 17:28:24 · 386 阅读 · 0 评论 -
ios学习临时笔记-UIViewAutoresizing
一.说明先看UIView中的UIViewAutoresizing的枚举说明:typedef NS_OPTIONS(NSUInteger, UIViewAutoresizing) { UIViewAutoresizingNone = 0, UIViewAutoresizingFlexibleLeftMargin = 1 << 0,翻译 2014-03-19 16:13:59 · 375 阅读 · 0 评论 -
ios学习临时笔记-NSLocalizedString使用
一、NSLocalizedString的官方define#define NSLocalizedString(key, comment) \ [[NSBundle mainBundle] localizedStringForKey:(key) value:@"" table:nil]第一个参数是key值,第二个comment参数可以为@"",nil或注解二、详细使用步骤原创 2014-03-18 18:19:37 · 450 阅读 · 0 评论 -
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 · 432 阅读 · 0 评论 -
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 · 635 阅读 · 0 评论 -
ios学习临时笔记-CGContext学习
CGContextSaveGState(CGContextRef c) 按目前的图形状态的副本到图形状态栈。(路径不保存)CGContextRestoreGState(CGContextRef c)还原最近一次保存的图形状态CGContextScaleCTM(CGContextRef c, CGFloat sx, CGFloat sy)缩放当前图形状态的矩阵CG翻译 2014-03-19 20:53:15 · 1408 阅读 · 0 评论 -
ios学习临时笔记-UITableView学习
一.常见属性//设置表视图分割线风格@property(nonatomic) UITableViewCellSeparatorStyle separatorStyle;//设置表视图分割线颜色,默认灰色@property(nonatomic,retain) UIColor *separatorColor;//设置表视图的头部视图@property(nonatomic,r翻译 2014-03-20 14:55:50 · 361 阅读 · 0 评论