[touch locationInView:[[UIApplication sharedApplication] keyWindow]]
keyWindow
The application's key window. (read-only)
@property(nonatomic, readonly)
UIWindow *keyWindow
Discussion
This property holds the UIWindow
object in the windows
array that is most recently sent the makeKeyAndVisible
message.