提交 407c376e 编写于 作者: L LY

对象dealloc时移除KVO 监听者

上级 a8e9e92b
...@@ -37,6 +37,9 @@ ...@@ -37,6 +37,9 @@
return self; return self;
} }
- (void)dealloc {
[kDelegateWindow removeObserver:self forKeyPath:@"rootViewController"];
}
- (void)show{ - (void)show{
if (!_alignView) { if (!_alignView) {
......
...@@ -37,6 +37,9 @@ ...@@ -37,6 +37,9 @@
return self; return self;
} }
- (void)dealloc {
[kDelegateWindow removeObserver:self forKeyPath:@"rootViewController"];
}
- (void)show{ - (void)show{
if (!_viewCheckView) { if (!_viewCheckView) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册