Fix Error on dealloc

This commit is contained in:
Zhigang Fang
2013-01-22 01:23:40 +08:00
parent 2f1afe7c2f
commit 7594c788d6

View File

@@ -169,7 +169,9 @@ static char UITableViewZGParallelViewIsObserving;
}
- (void)dealloc{
[self removeObserver:self forKeyPath:@"contentOffset" context:nil];
if (self.isObserving) {
[self removeObserver:self forKeyPath:@"contentOffset" context:nil];
}
}
@end