However, the window property of the UIApplicationDelegate is declared as optional. Thus, the above code leads to a crash when my application delegate does not implement the window method.
I suggest checking for existence of that method via -respondsToSelector: first and using [UIApplication sharedApplication].keyWindow otherwise.
Line 857 of iRate.m currently contains this code:
However, the
window
property of theUIApplicationDelegate
is declared as optional. Thus, the above code leads to a crash when my application delegate does not implement thewindow
method.I suggest checking for existence of that method via
-respondsToSelector:
first and using[UIApplication sharedApplication].keyWindow
otherwise.