Note that there are some explanatory texts on larger screens.

plurals
  1. POif my retainCount is 4 is that bad for iphone
    text
    copied!<p>Updates code</p> <pre><code>- (void) searchBarSearchButtonClicked:(UISearchBar *)theSearchBar { mytimer3=[NSTimer scheduledTimerWithTimeInterval:.03 target:self selector:@selector(show) userInfo:nil repeats:NO]; NSLog(@" search is down"); //////////// rnd to hold keyboard //ovController.view.backgroundColor = [UIColor grayColor]; self.tableView.scrollEnabled = NO; UserText=[self.searchDisplayController.searchBar text]; myInt= UserText.length; //int myInt= [save length]; // NSString *myStringPrt1 = [[NSString alloc] init]; // NSString *myStringPrt2 = [[NSString alloc] init]; if(UserText.length&gt;3) { //[ovController.view removeFromSuperview]; //[tableView reloadData]; url=nil; // myStringPrt1=@"http://find.php?keyword="; NSString * myStringPrt2=UserText; // myStringPrt1=[myStringPrt1 stringByAppendingString:myStringPrt2]; // myStringPrt1 = [myStringPrt1 stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; // loadingView.hidden=NO; NSString *outputString = [[NSString stringWithString:@"http://find.php?keyword="] stringByAppendingString: UserText]; outputString = [outputString stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; NSLog(@"My string is now = %@", outputString); url= [NSURL URLWithString:outputString]; NSXMLParser *xmlParser = [[[NSXMLParser alloc] initWithContentsOfURL:url] autorelease]; //Initialize the delegate. XMLParser *parser = [[[XMLParser alloc] initXMLParser]autorelease]; //Set delegate [xmlParser setDelegate:parser]; //Start parsing the XML file. BOOL success = [xmlParser parse]; if(success) { [super viewDidLoad]; [self searchTableView]; mytimer4=[NSTimer scheduledTimerWithTimeInterval:1.0 target:self selector:@selector(wipe) userInfo:nil repeats:NO]; } } </code></pre> <p>}</p>
 

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