Fix rootViewController by using appDelegate.window instead of keyWindow.
Merge pull request #79 from inamiy/fix-78

Fix rootViewController by using appDelegate.window instead of keyWindow.
Merge branch 'master' into patch-1