since we already have a working UIWindow subclass, added code to test hit-testing example from end of chapter 5
updated for Xcode 6 GM
restored code to illustrate hit-testing a shape