iOSKVC KVO 添加觀察者 --銷燬的時候要刪除觀察者

#import "Person.h"spa #import "Card.h"3d @implementation Personcode - (void)setCard:(Card *)cardserver {rem     _card=card;it          //添加觀察者,用來監視餘額的變更io     [self.card addObserver:self forKeyPath:@"
相關文章
相關標籤/搜索