title: How to implement close a subview when user touched its superview in iphone?
body: <p>I have a view controller and I have created an another view in same view controller and added it as a sub view.When a button clicked the subview will appear and it takes half of the screen.How can I close the subview when user touched the superview(main view in background) ?</p>