Commit 41cc0b77 authored by yuzheng's avatar yuzheng

fix: removeObserver

parent e5c2e8a2
......@@ -875,6 +875,7 @@ static CGFloat itemMargin = 5;
}
- (void)dealloc {
[[NSNotificationCenter defaultCenter] removeObserver:self];
// NSLog(@"%@ dealloc",NSStringFromClass(self.class));
}
......
......@@ -513,6 +513,7 @@
#pragma mark - Private Method
- (void)dealloc {
[[NSNotificationCenter defaultCenter] removeObserver:self];
// NSLog(@"%@ dealloc",NSStringFromClass(self.class));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment