I have a UIViewController that implements 4 delegates:
@interface AllProductsVC : UIViewController <UITableViewDelegate, UITableViewDataSource, UISearchBarDelegate, UISearchDisplayDelegate>{
NSArray *array;
NSMutableArray *searchData;
UISearchBar *searchBar;
UISearchDisplayController *searchDisplayController;
}
@property int numberOfProducts;
@property int productsToLoad;
@property(nonatomic, retain) UITableView *productsTableView;
@property(nonatomic, retain) UISegmentedControl *segmentedControl;
-(IBAction)getProducts;
@end
My problem is that the viewcontroller has a segmentedControl. During the search if you click the segmentedControl the view doesn't show another time the navigation controller breaking the user interaction with the app.
I tried to hide the segmentedControl during search and only works until you change the segmentControl, if you change it (before searching) after on search is not hidden, i tried the same with enabled but the same result.
Is there any way to don't hide the navigation controller? i tried to search for results and found other questions on stackoverflow but didn't helped to me.
Best regards