04 2015 档案

摘要:1. 代码示例- (void)viewDidLoad { [super viewDidLoad]; CAShapeLayer *shape = [CAShapeLayer layer]; UIBezierPath *bezierPath = [UIBezierPath bezierPathWi... 阅读全文
posted @ 2015-04-30 16:44 oumygade 阅读(542) 评论(0) 推荐(0)
摘要:点击tableView的cell,让其滚到屏幕顶部,很多电商的分类模块,都采用这种做法1. 示例代码- (void)viewDidLoad { [super viewDidLoad]; [self addTableView];}#pragma mark - 创建tableView- (void)... 阅读全文
posted @ 2015-04-30 15:02 oumygade 阅读(1508) 评论(0) 推荐(0)
摘要:- (void)viewDidLoad{ [super viewDidLoad]; [self initButton];}- (void)initButton{ UIButton *button = [[UIButton alloc]init]; button.backgroundColor... 阅读全文
posted @ 2015-04-28 09:59 oumygade 阅读(729) 评论(0) 推荐(0)
摘要:1. Plist → 模型数组控制器中引用#import "MJExtension.h"模型数组 = [模型类名 objectArrayWithFilename:[[NSBundle mainBundle] pathForResource:@"文件名.plist" ofType:nil]];2. 对... 阅读全文
posted @ 2015-04-28 09:06 oumygade 阅读(3879) 评论(0) 推荐(0)
摘要:衰减动画- (void)viewDidLoad { [super viewDidLoad]; [self initCircleBtn];}- (void)initCircleBtn{ // 实例化手势,并最终将手势添加到圆形按钮上 UIPanGestureRecognizer *pan = [... 阅读全文
posted @ 2015-04-27 17:34 oumygade 阅读(498) 评论(0) 推荐(0)
摘要:1. 初始化方法有以下三种初始化方法:使用scheduledTimerWithTimeInterval:invocation:repeats:或者scheduledTimerWithTimeInterval:target:selector:userInfo:repeats:这两个类方法创建一个tim... 阅读全文
posted @ 2015-04-13 19:04 oumygade 阅读(240) 评论(0) 推荐(0)