浏览代码

bugfix: avoid YYTextEffectWindow become key window

ibireme 9 年之前
父节点
当前提交
89091c2e4a
共有 1 个文件被更改,包括 5 次插入0 次删除
  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;