https://github.com/YouXianMing
摘要: KVOKVO属于设计模式中的观察者模式,在观察者模式中,一个对象任何状态的变更都会通知另外的对改变感兴趣的对象。这些对象之间不需要知道彼此的存在,这其实是一种松耦合的设计。当某个属性变化的时候,我们通常使用这个模式去通知其它对象。本人用3种方式来讲述KVO的使用,开始前新建一个对象Student类,用以监控Student类中name属性,源码如下Student.h + Student.m#import @interface Student : NSObject@property (nonatomic, strong) NSString *name;@end#import "Stude 阅读全文
posted @ 2014-03-25 18:00 YouXianMing 阅读(3153) 评论(1) 推荐(0) 编辑
摘要: source https://github.com/jdg/MBProgressHUDMBProgressHUD is an iOS drop-in class that displays a translucent HUD with an indicator and/or labels while work is being done in a background thread. The HUD is meant as a replacement for the undocumented, private UIKit UIProgressHUD with some additional f 阅读全文
posted @ 2014-03-25 10:34 YouXianMing 阅读(1111) 评论(0) 推荐(1) 编辑