Эх сурвалжийг харах

bugfix: avoid YYTextEffectWindow become key window

ibireme 9 жил өмнө
parent
commit
89091c2e4a

+ 5 - 0
YYText/Component/YYTextEffectWindow.m

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