This commit is contained in:
Zhigang Fang
2013-01-22 01:43:38 +08:00
parent 7a917b85f6
commit 9af9252334

View File

@@ -89,7 +89,12 @@ static char UITableViewZGParallelViewIsObserving;
- (void)setIsObserving:(BOOL)isObserving {
if (self.isObserving == YES && isObserving == NO) {
[self removeObserver:self forKeyPath:@"contentOffset"];
@try {
[self removeObserver:self forKeyPath:@"contentOffset"];
}
@catch (NSException *exception) {
//It's not observing
}
}
[self willChangeValueForKey:@"isObserving"];