title: How to resignfirstResponser on x button action event in uisearch bar?
body: <p><a href="https://i.stack.imgur.com/MRXYy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MRXYy.png" alt=""></a>
  I am unable to detect x button action in UISearchBar iOS 9. is there anyone can help me?</p>