Selaa lähdekoodia

Merge pull request #121 from vox-humana/master

iOS extension build fix
Yaoyuan 9 vuotta sitten
vanhempi
commit
c749bda4b6
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      YYText/Component/YYTextEffectWindow.m

+ 1 - 1
YYText/Component/YYTextEffectWindow.m

@@ -38,7 +38,7 @@
 }
 
 - (UIViewController *)rootViewController {
-    for (UIWindow *window in [[UIApplication sharedApplication] windows]) {
+    for (UIWindow *window in [YYTextSharedApplication() windows]) {
         if (self == window) continue;
         if (window.hidden) continue;
         UIViewController *topViewController = window.rootViewController;