I am using iOS7 i have a search bar. i am using textDidChange method to get each character and handling my code, I have clear "X button" when we have text. in previous versions when click on the clear button textDidChange method is called once and we used to handle the code there.
But in iOS7 this method is called twice when clicking on clear button , This behaviour i can see in Sample code also
- (void)searchBar:(UISearchBar *)searchBar textDidChange:(NSString *)searchText{