Search code examples
iphoneios6ios7uisearchbaruisearchbardelegate

UISearchBar delegate method calls only one time in iOS7


In iOS 7 searchbar delegate method searchBarTextDidBeginEditingis not being called on second time. When i tap first time on searchbar then it is calling searchBarTextDidBeginEditing this method but when i tap second time then it is not calling its delegate method while it is working good in iOS 6. problem is only with iOS 7

Any help please


Solution

  • In iOS7 used searchBarShouldBeginEditing and my problem is fixed but still i don't know why it is not calling searchBarTextDidBeginEditing in iOS 7 every time. this is called only once but searchBarShouldBeginEditing is called every time