摘要: [UIView beginAnimations:@"trun" context:nil];//开始一个动画 [UIView setAnimationDuration:1]; //动画的时间 [UIView setAnimationCurve:U... 阅读全文
posted @ 2015-08-01 23:04 一只简单的码农 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 1.delegate传值,传事件。1、避免子类化带来的过多的子类以及子类与父类的耦合2、通过委托传递消息机制实现分层解耦eg.代理#import @class Children; @protocol ChildrenDelegate @required- (void)Eat:(Children *... 阅读全文
posted @ 2015-08-01 15:46 一只简单的码农 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 1.UISwitch 开关2.UISegment 分段控件 阅读全文
posted @ 2015-08-01 12:51 一只简单的码农 阅读(92) 评论(0) 推荐(0) 编辑