mrackwitz / MRProgress

Collection of iOS drop-in components to visualize progress
MIT License
2.55k stars 305 forks source link

Fix window crash on iOS 8 #124

Closed kylebshr closed 8 years ago

kylebshr commented 8 years ago

On iOS 8, [window.layer renderInContext:context]; (line 185 of this file) will cause a crash if the window that the progress view is in is not the application delegates window. By using self.window, this crash has been fixed.

This doesn't occur on iOS 9, but it seems that CGContext is much more picky on iOS 8.

mrackwitz commented 8 years ago

Thanks for the fix. :+1: The failure of the Travis build seems to be unrelated.

kylebshr commented 8 years ago

Awesome! Any plans to fix up travis and release this? If there's anything I can do to help let me know.