【发布时间】:2013-05-25 05:39:52
【问题描述】:
我有一个实现 4 个委托的 UIViewController:
@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
我的问题是视图控制器有一个segmentedControl。 在搜索期间,如果您单击 segmentedControl,则视图不会再次显示导航控制器中断用户与应用程序的交互。
我尝试在搜索过程中隐藏 segmentedControl,并且仅在您更改 segmentControl 之前有效,如果您在搜索未隐藏后更改它(在搜索之前),我尝试启用相同但结果相同。
有没有办法不隐藏导航控制器?我试图搜索结果并在 stackoverflow 上找到了其他问题,但对我没有帮助。
最好的问候
【问题讨论】:
标签: uisearchbar uisegmentedcontrol uisearchdisplaycontroller