Browse Source

bugfix: avoid YYTextEffectWindow become key window

ibireme 9 years ago
parent
commit
89091c2e4a
1 changed files with 5 additions and 0 deletions
  1. 5 0
      YYText/Component/YYTextEffectWindow.m

+ 5 - 0
YYText/Component/YYTextEffectWindow.m

@@ -47,6 +47,11 @@
     return one;
 }
 
+// stop self from becoming the KeyWindow
+- (void)becomeKeyWindow {
+    [[YYTextSharedApplication().delegate window] makeKeyWindow];
+}
+
 - (UIViewController *)rootViewController {
     for (UIWindow *window in [YYTextSharedApplication() windows]) {
         if (self == window) continue;