Note that there are some explanatory texts on larger screens.

plurals
  1. POUIScope Bar doesn't show items (if no Searchtext is submitted)
    primarykey
    data
    text
    <p>i have a Searchbar with a Scopebar in my RootViewController. If I am searching for the items it's working very fine, also if I searching in a Scope Range. <strong>But how is it possible to show Scope Results, if no Searchtext was given from the User?</strong></p> <p>A Code Sample would be very fine.</p> <p>Here is the Code which filter after the User set Text into the Seachbar.</p> <pre><code>- (void)filterContentForSearchText:(NSString*)searchText scope:(NSString*)scope { [self.filteredContent removeAllObjects]; // First clear the filtered array. for (test *new in tabelle) { //cat1 if ([scope isEqualToString:@"cat1"] &amp;&amp; [new.Location isEqualToString:@"cat1"]) { NSComparisonResult result = [new.TText compare:searchText options:(NSCaseInsensitiveSearch|NSDiacriticInsensitiveSearch) range:NSMakeRange(0, [searchText length])]; if (result == NSOrderedSame) { [self.filteredContent addObject:new]; } } //cat2 if ([scope isEqualToString:@"cat2"] &amp;&amp; [new.Location isEqualToString:@"cat2"]) { NSComparisonResult result = [new.TText compare:searchText options:(NSCaseInsensitiveSearch|NSDiacriticInsensitiveSearch) range:NSMakeRange(0, [searchText length])]; if (result == NSOrderedSame) { [self.filteredContent addObject:new]; } } //all if ([scope isEqualToString:@"Alle"]) { NSComparisonResult result = [new.TText compare:searchText options:(NSCaseInsensitiveSearch|NSDiacriticInsensitiveSearch) range:NSMakeRange(0, [searchText length])]; if (result == NSOrderedSame) { [self.filteredContent addObject:new]; } } } } </code></pre> <p>I want results without any typed letter in the Searchbar</p> <p>Like this image but without the typed in letter: <a href="http://edumobile.org/iphone/wp-content/uploads/2010/03/search.jpg" rel="nofollow">http://edumobile.org/iphone/wp-content/uploads/2010/03/search.jpg</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload