I know this question was asked several times before, and it was solved(Before I was using that solution with iOS4 and 5). My recent project involves using UISearchBar with some other views, and I want to show it’s scope buttons when it becomes active. Before, in UISearchBardelegate‘s - (BOOL)searchBarShouldBeginEditing:(UISearchBar *)searchBar I was doing
[searchBar setShowsScopeBar:YES];
[searchBar sizeToFit];
and it was showing scope buttons. But now, on iOS6 this code does nothing. UISearchBar is added in IB, it’s delegate is set to my view controller.
Anybody has solution for this problem? Thanks in advance.
Ok, problem was with iOS 6 auto layout thing, once I’va removed it, problem was gone. Thanks everyone 🙂