上一页 1 2 3 4 5 6 7 ··· 10 下一页
摘要: 1. 代码示例- (void)viewDidLoad { [super viewDidLoad]; CAShapeLayer *shape = [CAShapeLayer layer]; UIBezierPath *bezierPath = [UIBezierPath bezierPathWi... 阅读全文
posted @ 2015-04-30 16:44 oumygade 阅读(525) 评论(0) 推荐(0) 编辑
摘要: 点击tableView的cell,让其滚到屏幕顶部,很多电商的分类模块,都采用这种做法1. 示例代码- (void)viewDidLoad { [super viewDidLoad]; [self addTableView];}#pragma mark - 创建tableView- (void)... 阅读全文
posted @ 2015-04-30 15:02 oumygade 阅读(1478) 评论(0) 推荐(0) 编辑
摘要: - (void)viewDidLoad{ [super viewDidLoad]; [self initButton];}- (void)initButton{ UIButton *button = [[UIButton alloc]init]; button.backgroundColor... 阅读全文
posted @ 2015-04-28 09:59 oumygade 阅读(717) 评论(0) 推荐(0) 编辑
摘要: 1. Plist → 模型数组控制器中引用#import "MJExtension.h"模型数组 = [模型类名 objectArrayWithFilename:[[NSBundle mainBundle] pathForResource:@"文件名.plist" ofType:nil]];2. 对... 阅读全文
posted @ 2015-04-28 09:06 oumygade 阅读(3852) 评论(0) 推荐(0) 编辑
摘要: 衰减动画- (void)viewDidLoad { [super viewDidLoad]; [self initCircleBtn];}- (void)initCircleBtn{ // 实例化手势,并最终将手势添加到圆形按钮上 UIPanGestureRecognizer *pan = [... 阅读全文
posted @ 2015-04-27 17:34 oumygade 阅读(492) 评论(0) 推荐(0) 编辑
摘要: 1. 初始化方法有以下三种初始化方法:使用scheduledTimerWithTimeInterval:invocation:repeats:或者scheduledTimerWithTimeInterval:target:selector:userInfo:repeats:这两个类方法创建一个tim... 阅读全文
posted @ 2015-04-13 19:04 oumygade 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 1. 对上面的图片做裁剪: CGContextRef ctx = UIGraphicsGetCurrentContext(); // 画圆 CGContextAddEllipseInRect(ctx, CGRectMake(50, 50, 60, 60)); // 圆外的都剪掉 CGCont... 阅读全文
posted @ 2015-03-23 16:15 oumygade 阅读(234) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/wendingding/p/3782551.html 阅读全文
posted @ 2015-03-23 15:23 oumygade 阅读(84) 评论(0) 推荐(0) 编辑
摘要: // 获取图形上下文 CGContextRef ctx = UIGraphicsGetCurrentContext(); // 存储上下文栈 CGContextSaveGState(ctx); // 设置图形上下文 CGContextSetLineWidth( ctx, 10); [[... 阅读全文
posted @ 2015-03-23 14:34 oumygade 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 1.线 // 1.获得图形上下文 CGContextRef ctx = UIGraphicsGetCurrentContext(); // 设置线宽 CGContextSetLineWidth(ctx, 5); // 设置颜色 CGContextSetRGBStrokeColor(ctx... 阅读全文
posted @ 2015-03-20 11:15 oumygade 阅读(297) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 10 下一页