मैं UISearchDisplayController
को कार्यान्वित कर रहा हूं और मैं searchResultsTableView
को तालिका दृश्य (unfiltered) की सामग्री के साथ लोड करना चाहता हूं - टेक्स्ट दर्ज होने से पहले।सर्चबार सक्रिय होने पर searchResultsTableView कैसे दिखाना है?
यह तब काम करता है जब मैं खोजबार में मान दर्ज करना शुरू करता हूं।
- (void)searchDisplayControllerWillBeginSearch:(UISearchDisplayController *)controller {
self.isSearching = YES;
//tell the searchDisplayTableView to show here!
[controller.searchBar setShowsCancelButton:YES animated:YES];
}
- (void)searchDisplayControllerDidEndSearch:(UISearchDisplayController *)controller {
self.isSearching = NO;
[controller.searchBar setShowsCancelButton:NO animated:YES];
}
क्या किसी के पास सही दिशा में कोई संकेतक होगा?
कृपया "ऐसा न करें" या "ऐप्पल ने इस तरह से नियंत्रण को डिजाइन नहीं किया है" के साथ उत्तर न दें। या ...
क्या आपको कोई समाधान मिला है? मुझे भी ठीक यही समस्या है। – nonamelive
क्या किसी ने अभी तक यह कैसे किया है? – Chicken