Changed how we get the UIWindow as sometimes its not in your app delegate. I use a Mediator Pattern and have a reference to the window there so it was causing a crash.