Getting keyWindow nil inside Framework

320 Views Asked by At

I am making a framework where I need to get keyWindow inside framework to add some view on it.When trying to get by usual way UIApplication.sharedApplication().keyWindow then every time it is returning nil.

Is it possible to get keywindow inside framework ? If yes then how to get it or is there any other way to add some view on top of others view irrespective of any viewcontrollers.

0

There are 0 best solutions below