[self.m_tableView addObserver:self forKeyPath:@"contentOffset" options:NSKeyValueObservingOptionNew context:nil];
写完这个,一定要TMD的记得
[self.m_tableView removeObserver:self forKeyPath:@"contentOffset"];
要不然,出这个
message sent to deallocated instance
他报的地方根本就不是你的坑。
网友评论