resign keyboard when losing focus on uisearchbar
I'm making an UISearchBar option in the navigationbar of my app. My app consists of multiple views and subviews. I have this mainview which has 3 other views on himself. one of it is empty (for now) the other 2 have tableviews on them. I want my keyboard to show when I'm searching and hide when i'm doing the actual search or when i touch/click outside the uisearchbar. Im using the searchbardelegate as is required. Im able to hide the keyboard using [searchBar resignFirstResponder] in the following ways. When im pressing the return key. When i cancel search manually When i press any of the