|
@@ -582,6 +582,9 @@
|
|
|
if (suspensionArray.count) {
|
|
|
self.buttonModel = [[HomeMessageModel alloc] initWithDictionary:[suspensionArray firstObject]];
|
|
|
}
|
|
|
+ else {
|
|
|
+ self.buttonModel = nil;
|
|
|
+ }
|
|
|
}
|
|
|
else {
|
|
|
[self MBPShow:MESSAGEKEY];
|
|
@@ -860,6 +863,15 @@
|
|
|
if (self.buttonModel) {
|
|
|
[self showFloatingWindow];
|
|
|
}
|
|
|
+ else {
|
|
|
+ [self removeFloatWindow];
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+- (void)removeFloatWindow {
|
|
|
+ if ([self.view.subviews containsObject:self.suspendButton]) {
|
|
|
+ [self.suspendButton removeFromSuperview];
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
// 显示悬浮窗
|