2018-07-04 切记

2018-07-04  本文已影响6人  天上掉陷阱

[self.m_tableView addObserver:self forKeyPath:@"contentOffset" options:NSKeyValueObservingOptionNew context:nil];

写完这个,一定要TMD的记得

[self.m_tableView removeObserver:self forKeyPath:@"contentOffset"];

要不然,出这个

message sent to deallocated instance

他报的地方根本就不是你的坑。

上一篇下一篇

猜你喜欢

热点阅读