toast-notifications-ios icon indicating copy to clipboard operation
toast-notifications-ios copied to clipboard

the uiwindow not find correct

Open wuzhenda opened this issue 10 years ago • 1 comments

in my ios7 project the iToast not show,but in other project it works fine. so I debug into the source code find if I change as this it works fine. so some guy like me may need this.

  • UIWindow *window = [[[UIApplication sharedApplication] windows] objectAtIndex:0];
  • UIWindow *window=[[[UIApplication sharedApplication] delegate] window];

commit url: https://github.com/wuzhenda/toast-notifications-ios/commit/d46978879d8e6159e370a469a7fe76cd3eb2918d

wuzhenda avatar Sep 01 '14 03:09 wuzhenda

thanks... your comment helps me :)

joinsik avatar Dec 10 '14 06:12 joinsik