mirror of
https://github.com/zhigang1992/ZGParallelView.git
synced 2026-04-24 11:55:02 +08:00
Fix Error on dealloc
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user