提交 596c109e 编写于 作者: Y yixiangboy

去掉无用代码

上级 a68c01c3
......@@ -45,7 +45,6 @@
#define STRING_NOT_NULL(str) ((str==nil)?@"":str)
#define DoraemonShowPluginNotification @"DoraemonShowPluginNotification"
#define DoraemonClosePluginNotification @"DoraemonClosePluginNotification"
#define DoraemonQuickOpenLogVCNotification @"DoraemonQuickOpenLogVCNotification"
......
......@@ -113,7 +113,6 @@
[_entryBtn setImage:[UIImage doraemon_imageNamed:@"doraemon_logo"] forState:UIControlStateNormal];
[_entryBtn removeTarget:self action:@selector(closePluginClick:) forControlEvents:UIControlEventTouchUpInside];
[_entryBtn addTarget:self action:@selector(entryClick:) forControlEvents:UIControlEventTouchUpInside];
[[NSNotificationCenter defaultCenter] postNotificationName:DoraemonClosePluginNotification object:nil userInfo:nil];
}
/**
......@@ -126,8 +125,6 @@
}else{
[[DoraemonHomeWindow shareInstance] hide];
}
[[NSNotificationCenter defaultCenter] postNotificationName:DoraemonClosePluginNotification object:nil userInfo:nil];
}
- (void)pan:(UIPanGestureRecognizer *)sender{
......
......@@ -88,7 +88,6 @@ static CGFloat const kColorPickWindowSize = 150;
- (void)show {
self.hidden = NO;
[[NSNotificationCenter defaultCenter] postNotificationName:DoraemonShowPluginNotification object:nil userInfo:nil];
}
- (void)hide {
......
......@@ -30,13 +30,10 @@
}
- (void)show {
[self makeKeyAndVisible];
// self.hidden = NO;
[[NSNotificationCenter defaultCenter] postNotificationName:DoraemonShowPluginNotification object:nil userInfo:nil];
self.hidden = NO;
}
- (void)hide {
[self resignKeyWindow];
self.hidden = YES;
}
......
......@@ -50,7 +50,6 @@
}
// _alignView.hidden = NO;
[_alignView show];
[[NSNotificationCenter defaultCenter] postNotificationName:DoraemonShowPluginNotification object:nil userInfo:nil];
}
- (void)hidden{
......
......@@ -48,7 +48,6 @@
[kDelegateWindow addSubview:_viewCheckView];
}
[_viewCheckView show];
[[NSNotificationCenter defaultCenter] postNotificationName:DoraemonShowPluginNotification object:nil userInfo:nil];
}
- (void)hidden{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册